summaryrefslogtreecommitdiffstats
path: root/ripngd/ripng_routemap.c
diff options
context:
space:
mode:
authorPaul Jakma <paul.jakma@sun.com>2006-05-08 16:32:07 +0200
committerPaul Jakma <paul.jakma@sun.com>2006-05-08 16:32:07 +0200
commit7a559cbe8f794d298419a8ada80a9f12933eceda (patch)
tree78ec707e899fe331ba08e80bde0a04debb89d4ed /ripngd/ripng_routemap.c
parent[bgpd] CID#62 fix double-free, use-after-free in community_str2com (diff)
downloadfrr-7a559cbe8f794d298419a8ada80a9f12933eceda.tar.xz
frr-7a559cbe8f794d298419a8ada80a9f12933eceda.zip
[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.
Diffstat (limited to 'ripngd/ripng_routemap.c')
-rw-r--r--ripngd/ripng_routemap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ripngd/ripng_routemap.c b/ripngd/ripng_routemap.c
index abaa61e19..1570c78b4 100644
--- a/ripngd/ripng_routemap.c
+++ b/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);