Browse Source

[ripngd] bug #242, fix crash in routemap, ipv6 stored in in_addr.

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.
Paul Jakma 15 years ago
parent
commit
7a559cbe8f
2 changed files with 7 additions and 1 deletions
  1. 6 0
      ripngd/ChangeLog
  2. 1 1
      ripngd/ripng_routemap.c

+ 6 - 0
ripngd/ChangeLog

@@ -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.

+ 1 - 1
ripngd/ripng_routemap.c

@@ -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);