projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
58acba6
)
Merge remote-tracking branch 'github/pr/2012' into collectd-5.6
author
Florian Forster
<octo@collectd.org>
Sat, 29 Oct 2016 20:08:32 +0000
(22:08 +0200)
committer
Florian Forster
<octo@collectd.org>
Sat, 29 Oct 2016 20:08:32 +0000
(22:08 +0200)
src/openvpn.c
patch
|
blob
|
history
diff --git
a/src/openvpn.c
b/src/openvpn.c
index
00ae736
..
be9a4dc
100644
(file)
--- a/
src/openvpn.c
+++ b/
src/openvpn.c
@@
-525,6
+525,9
@@
static int openvpn_read (void)
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++)
@@
-659,8
+662,8
@@
static int openvpn_config (const char *key, const char *value)
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);
}