]> git.puffer.fish Git - mirror/frr.git/commitdiff
[ripngd] bug #242, fix crash in routemap, ipv6 stored in in_addr.
authorPaul Jakma <paul.jakma@sun.com>
Mon, 8 May 2006 14:32:07 +0000 (14:32 +0000)
committerPaul Jakma <paul.jakma@sun.com>
Mon, 8 May 2006 14:32:07 +0000 (14:32 +0000)
2006-05-08 Paul Jakma <paul.jakma@sun.com>

* ripng_routemap.c: (route_set_ipv6_nexthop_local_compile) bug
  #242, s/in_addr/in6_addr to fix crash.
  Thanks to jithinvachery+quagga@gmail.com.

ripngd/ChangeLog
ripngd/ripng_routemap.c

index 556ca8b4442305ae9fe5106d5fd10271d1729c10..ff284f1f270b93fff9dd80970e5dbbc0f5172ce2 100644 (file)
@@ -1,3 +1,9 @@
+2006-05-08 Paul Jakma <paul.jakma@sun.com>
+
+       * ripng_routemap.c: (route_set_ipv6_nexthop_local_compile) bug
+         #242, s/in_addr/in6_addr to fix crash. 
+         Thanks to jithinvachery+quagga@gmail.com.
+
 2006-01-19 Paul Jakma <paul.jakma@sun.com>
 
         * (general) various miscellaneous compiler warning fixes.
index abaa61e1906c77c62f58b2a85417e1b8cdf15734..1570c78b478387471407ddbd732104e080a1dfaa 100644 (file)
@@ -416,7 +416,7 @@ route_set_ipv6_nexthop_local_compile (const char *arg)
   int ret;
   struct in6_addr *address;
 
-  address = XMALLOC (MTYPE_ROUTE_MAP_COMPILED, sizeof (struct in_addr));
+  address = XMALLOC (MTYPE_ROUTE_MAP_COMPILED, sizeof (struct in6_addr));
 
   ret = inet_pton (AF_INET6, arg, address);