author | Florian Forster <octo@collectd.org> | |
Sun, 14 Sep 2014 17:28:05 +0000 (19:28 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Sun, 14 Sep 2014 17:28:05 +0000 (19:28 +0200) | ||
commit | 691746f41a3df33f9fe26cc53f12ec16286c09fc | |
tree | 27f5c5aee5dac89ab18f06c7fffb02315c8592b8 | tree | snapshot |
parent | 4a89ba505930c9e96f297631c2b572a0051df520 | commit | diff |
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
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 | diff | blob | history |