Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netipsec CID 274353: Forward NULL



details:   https://anonhg.NetBSD.org/src/rev/4b02bed0575b
branches:  trunk
changeset: 796476:4b02bed0575b
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jun 05 17:11:54 2014 +0000

description:
CID 274353: Forward NULL

diffstat:

 sys/netipsec/key.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 26a1f459a990 -r 4b02bed0575b sys/netipsec/key.c
--- a/sys/netipsec/key.c        Thu Jun 05 16:06:49 2014 +0000
+++ b/sys/netipsec/key.c        Thu Jun 05 17:11:54 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: key.c,v 1.88 2014/05/30 01:39:03 christos Exp $        */
+/*     $NetBSD: key.c,v 1.89 2014/06/05 17:11:54 christos Exp $        */
 /*     $FreeBSD: src/sys/netipsec/key.c,v 1.3.2.3 2004/02/14 22:23:23 bms Exp $        */
 /*     $KAME: key.c,v 1.191 2001/06/27 10:46:49 sakane Exp $   */
 
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.88 2014/05/30 01:39:03 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.89 2014/06/05 17:11:54 christos Exp $");
 
 /*
  * This code is referd to RFC 2367
@@ -1772,7 +1772,7 @@
        }
        va_end(ap);
 
-       if ((result->m_flags & M_PKTHDR) != 0) {
+       if (result && (result->m_flags & M_PKTHDR) != 0) {
                result->m_pkthdr.len = 0;
                for (n = result; n; n = n->m_next)
                        result->m_pkthdr.len += n->m_len;



Home | Main Index | Thread Index | Old Index