[Pkg-nagios-devel] Bug#784319: Bug#784319: Bug#784319: Segfault when running check_dhcp

Andreas Heinlein aheinlein at gmx.com
Wed May 6 12:43:38 UTC 2015


FWIW, it worked. Here is the dpatch I created:

--- SNIP ---
#! /bin/sh /usr/share/dpatch/dpatch-run
## 10_check_dhcp.dpatch by  <aheinlein at gmx.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git'
'--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr'
monitoring-plugins-2.1.1~/plugins-root/check_dhcp.c
monitoring-plugins-2.1.1/plugins-root/check_dhcp.c
--- monitoring-plugins-2.1.1~/plugins-root/check_dhcp.c    2014-12-02
04:36:29.000000000 +0000
+++ monitoring-plugins-2.1.1/plugins-root/check_dhcp.c    2015-05-06
12:19:24.772947737 +0000
@@ -323,7 +323,8 @@
 #elif defined(__bsd__)
                         /* King 2004    see ACKNOWLEDGEMENTS */
 
-        int                     mib[6], len;
+        int                     mib[6];
+        size_t            len;
         char                    *buf;
         unsigned char           *ptr;
         struct if_msghdr        *ifm;
@@ -1182,7 +1183,7 @@
                 }
             }
 
-    return i;
+    return i+1;
         }
 

--- SNIP ---



More information about the Pkg-nagios-devel mailing list