Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 Fix rtfree-ing wrong rtentry
details: https://anonhg.NetBSD.org/src/rev/5de7b4015108
branches: trunk
changeset: 339480:5de7b4015108
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Fri Jul 24 07:36:29 2015 +0000
description:
Fix rtfree-ing wrong rtentry
diffstat:
sys/netinet6/icmp6.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 76759fc61797 -r 5de7b4015108 sys/netinet6/icmp6.c
--- a/sys/netinet6/icmp6.c Fri Jul 24 07:13:34 2015 +0000
+++ b/sys/netinet6/icmp6.c Fri Jul 24 07:36:29 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: icmp6.c,v 1.171 2015/07/17 02:21:08 ozaki-r Exp $ */
+/* $NetBSD: icmp6.c,v 1.172 2015/07/24 07:36:29 ozaki-r Exp $ */
/* $KAME: icmp6.c,v 1.217 2001/06/20 15:03:29 jinmei Exp $ */
/*
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: icmp6.c,v 1.171 2015/07/17 02:21:08 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: icmp6.c,v 1.172 2015/07/24 07:36:29 ozaki-r Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@@ -2473,7 +2473,7 @@
len = (len + 7) & ~7; /* round by 8 */
/* safety check */
if (len + (p - (u_char *)ip6) > maxlen) {
- rtfree(rt);
+ rtfree(rt_nexthop);
goto nolladdropt;
}
if (!(rt_nexthop->rt_flags & RTF_GATEWAY) &&
@@ -2488,7 +2488,7 @@
memcpy(lladdr, CLLADDR(sdl), ifp->if_addrlen);
p += len;
}
- rtfree(rt);
+ rtfree(rt_nexthop);
}
nolladdropt:;
Home |
Main Index |
Thread Index |
Old Index