williamh    14/09/18 19:02:52

  Added:                dhcpcd-6.4.4-fix-ipv6.patch
  Log:
  import upstream patch to fix ipv6 related segmentation fault for bug #523128
  
  (Portage version: 2.2.13/cvs/Linux x86_64, signed Manifest commit with key 
0x30C46538)

Revision  Changes    Path
1.1                  net-misc/dhcpcd/files/dhcpcd-6.4.4-fix-ipv6.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/dhcpcd/files/dhcpcd-6.4.4-fix-ipv6.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/dhcpcd/files/dhcpcd-6.4.4-fix-ipv6.patch?rev=1.1&content-type=text/plain

Index: dhcpcd-6.4.4-fix-ipv6.patch
===================================================================
Index: ipv6nd.c
==================================================================
--- ipv6nd.c
+++ ipv6nd.c
@@ -394,10 +394,13 @@
 int
 ipv6nd_addrexists(struct dhcpcd_ctx *ctx, const struct ipv6_addr *addr)
 {
        struct ra *rap;
        struct ipv6_addr *ap;
+
+       if (ctx->ipv6 == NULL)
+               return 0;
 
        TAILQ_FOREACH(rap, ctx->ipv6->ra_routers, next) {
                TAILQ_FOREACH(ap, &rap->addrs, next) {
                        if (addr == NULL) {
                                if ((ap->flags &





Reply via email to