Eric Spakman wrote:
> Hello,
>
> dnsmasq-2.31 doesn't build without a lot of tweaking, but before
> going that road can you tell me on what occasion 2.27 is segfaulting?
> If you have problems with 2.27 I don't think 2.31 will solve that. We
> applied a fix to dnsmasq that solves a segfault problem which is also
> applied upstream.

Here is the patch from Simon Kelley to fix the segfault problem in 2.27 rev 2.

diff -ur dnsmasq-2.27/src/rfc1035.c dnsmasq-2.27.patched/src/rfc1035.c
--- dnsmasq-2.27/src/rfc1035.c  2006-02-11 19:18:36.000000000 +0000
+++ dnsmasq-2.27.patched/src/rfc1035.c  2006-05-29 10:31:46.000000000 +0100
@@ -134,7 +134,11 @@
      }

    if (isExtract)
-    *--cp = 0; /* terminate: lose final period */
+    {
+      if (cp != (unsigned char *)name)
+        cp--;
+      *cp = 0; /* terminate: lose final period */
+    }
    else if (*cp != 0)
      retvalue = 2;


------------------------------------------------------------------------
leaf-user mailing list: [email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/

Reply via email to