Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/ipf/netinet A member of a non-null struct p...



details:   https://anonhg.NetBSD.org/src/rev/1061ebee60f3
branches:  trunk
changeset: 327086:1061ebee60f3
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Feb 27 01:30:18 2014 +0000

description:
A member of a non-null struct pointer can't be null.

diffstat:

 sys/external/bsd/ipf/netinet/ip_htable.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r b486345ed992 -r 1061ebee60f3 sys/external/bsd/ipf/netinet/ip_htable.c
--- a/sys/external/bsd/ipf/netinet/ip_htable.c  Thu Feb 27 01:17:13 2014 +0000
+++ b/sys/external/bsd/ipf/netinet/ip_htable.c  Thu Feb 27 01:30:18 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_htable.c,v 1.4 2013/09/14 11:41:45 martin Exp $     */
+/*     $NetBSD: ip_htable.c,v 1.5 2014/02/27 01:30:18 joerg Exp $      */
 
 /*
  * Copyright (C) 2012 by Darren Reed.
@@ -60,7 +60,7 @@
 #if !defined(lint)
 #if defined(__NetBSD__)
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_htable.c,v 1.4 2013/09/14 11:41:45 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_htable.c,v 1.5 2014/02/27 01:30:18 joerg Exp $");
 #else
 static const char rcsid[] = "@(#)Id: ip_htable.c,v 1.1.1.2 2012/07/22 13:45:19 darrenr Exp";
 #endif
@@ -625,8 +625,7 @@
        switch (iph->iph_type & ~IPHASH_ANON)
        {
        case IPHASH_GROUPMAP :
-               if (ipe->ipe_group != NULL)
-                       ipf_group_del(softc, ipe->ipe_ptr, NULL);
+               ipf_group_del(softc, ipe->ipe_ptr, NULL);
                break;
 
        default :



Home | Main Index | Thread Index | Old Index