diff --git a/src/openvpn.c b/src/openvpn.c
index 00ae736ad4b01c70555f509c0b3580afb8fa8329..be9a4dc863e383ca006660faeb3501c7020436b1 100644 (file)
--- a/src/openvpn.c
+++ b/src/openvpn.c
int read;
read = 0;
+
+ if (vpn_num == 0)
+ return (0);
/* call the right read function for every status entry in the list */
for (int i = 0; i < vpn_num; i++)
if (status_version == 0)
{
- WARNING ("openvpn plugin: unable to detect status version, \
- discarding status file \"%s\".", value);
+ WARNING ("openvpn plugin: unable to detect status version, "
+ "discarding status file \"%s\".", value);
return (1);
}