Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 Bail out in case m_pulldown failed.
details: https://anonhg.NetBSD.org/src/rev/1ce158f693c6
branches: trunk
changeset: 326847:1ce158f693c6
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Feb 20 13:36:06 2014 +0000
description:
Bail out in case m_pulldown failed.
diffstat:
sys/netinet6/icmp6.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r eab71dd56225 -r 1ce158f693c6 sys/netinet6/icmp6.c
--- a/sys/netinet6/icmp6.c Thu Feb 20 11:08:57 2014 +0000
+++ b/sys/netinet6/icmp6.c Thu Feb 20 13:36:06 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: icmp6.c,v 1.163 2013/11/23 14:20:22 christos Exp $ */
+/* $NetBSD: icmp6.c,v 1.164 2014/02/20 13:36:06 joerg 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.163 2013/11/23 14:20:22 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: icmp6.c,v 1.164 2014/02/20 13:36:06 joerg Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@@ -630,6 +630,8 @@
}
IP6_EXTHDR_GET(nicmp6, struct icmp6_hdr *, n, off,
sizeof(*nicmp6));
+ if (nicmp6 == NULL)
+ goto freeit;
nicmp6->icmp6_type = ICMP6_ECHO_REPLY;
nicmp6->icmp6_code = 0;
if (n) {
Home |
Main Index |
Thread Index |
Old Index