openvpn plugin: Don't signal an error when no clients are connected.
authorFlorian Forster <octo@collectd.org>
Sun, 14 Sep 2014 17:28:05 +0000 (19:28 +0200)
committerFlorian Forster <octo@collectd.org>
Sun, 14 Sep 2014 17:28:05 +0000 (19:28 +0200)
commit691746f41a3df33f9fe26cc53f12ec16286c09fc
tree27f5c5aee5dac89ab18f06c7fffb02315c8592b8
parent4a89ba505930c9e96f297631c2b572a0051df520
openvpn plugin: Don't signal an error when no clients are connected.

In the multi1_read() function, an error (zero) was returned when no
clients were currently connected to the OpenVPN server, because the
"read" variable was initialized to zero and the while loop exited before
it was set to one. This is not the intended behavior.

Thanks to @srix for reporting this issue!

Fixes: #731
src/openvpn.c