Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Mar 2015 16:38:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 198318] net-mgmt/nagios-plugins: check_dhcp segfaults in command line parser
Message-ID:  <bug-198318-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198318

            Bug ID: 198318
           Summary: net-mgmt/nagios-plugins: check_dhcp segfaults in
                    command line parser
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: mat@FreeBSD.org
          Reporter: ip@xenopsyche.com
             Flags: maintainer-feedback?(mat@FreeBSD.org)
          Assignee: mat@FreeBSD.org

The nagios plugin check_dhcp dies with a segfault on some (not all!) systems. 

Mar  5 15:20:45 lilith kernel: pid 8543 (check_dhcp), uid 0: exited on signal
11

This seems to be an off-by-one in the command line parser. Note that this
cannot be reproduced by running check_dhcp directly from the command line, it
only happens when run by a nagios worker. 

--- check_dhcp.c.orig   2015-03-05 15:25:55.000000000 +0000
+++ check_dhcp.c        2015-03-05 15:26:33.000000000 +0000
@@ -1185,7 +1185,7 @@
                        }
                }

-       return i;
+       return i+1;
         }

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-198318-13>