Module: monitoring-plugins
    Branch: maint
    Commit: 6a939fa1bacd90b64a8e09939ee06223330f7567
    Author: Jan Wagner <w...@cyconet.org>
 Committer: Holger Weiss <hol...@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;
         }
 
 

Reply via email to