aboutsummaryrefslogtreecommitdiff
path: root/plugins-root/check_dhcp.c
diff options
context:
space:
mode:
authorGravatar Jan Wagner <waja@cyconet.org> 2015-05-05 14:56:31 +0200
committerGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2015-10-02 10:32:00 +0200
commit6a939fa1bacd90b64a8e09939ee06223330f7567 (patch)
tree7020d634701f121eea82e58780729d708e907622 /plugins-root/check_dhcp.c
parent1c0ec88152125624c35e0d675efde65fee7bf8df (diff)
downloadmonitoring-plugins-6a939fa1bacd90b64a8e09939ee06223330f7567.tar.gz
Fixes segfaults when running via monitoring worker
(off-by-one) Grabed from https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198318
Diffstat (limited to 'plugins-root/check_dhcp.c')
-rw-r--r--plugins-root/check_dhcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c
index b874c555..5508d5f9 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;
}