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)
committerMarc Fournier <marc.fournier@camptocamp.com>
Fri, 10 Apr 2015 08:07:45 +0000 (10:07 +0200)
commit759b3c5616f5d4ecb393ee8a74b919465a9070d5
treed29740415796a7592c9a0ecb9d5960d912f6d14c
parentc5da45dfcfa86313c381af15519e304c995d9f59
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