[monitoring-plugins] Fixes segfaults when running via monitoring worker
Holger Weiss
git at monitoring-plugins.org
Fri Oct 2 12:50:10 CEST 2015
Module: monitoring-plugins
Branch: maint
Commit: 6a939fa1bacd90b64a8e09939ee06223330f7567
Author: Jan Wagner <waja at cyconet.org>
Committer: Holger Weiss <holger at zedat.fu-berlin.de>
Date: Tue May 5 14:56:31 2015 +0200
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=6a939fa
Fixes segfaults when running via monitoring worker
(off-by-one)
Grabed from https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198318
---
plugins-root/check_dhcp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c
index b874c55..5508d5f 100644
--- a/plugins-root/check_dhcp.c
+++ b/plugins-root/check_dhcp.c
@@ -1182,7 +1182,7 @@ int call_getopt(int argc, char **argv){
}
}
- return i;
+ return i+1;
}
More information about the Commits
mailing list