From 6a939fa1bacd90b64a8e09939ee06223330f7567 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Tue, 5 May 2015 14:56:31 +0200 Subject: Fixes segfaults when running via monitoring worker (off-by-one) Grabed from https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198318 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; } -- cgit v0.10-9-g596f