Source-Changes-HG archive

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

[src/trunk]: src/sys/netipsec remove a useless m_freem() call where the argum...



details:   https://anonhg.NetBSD.org/src/rev/728033955309
branches:  trunk
changeset: 765024:728033955309
user:      drochner <drochner%NetBSD.org@localhost>
date:      Mon May 16 10:04:02 2011 +0000

description:
remove a useless m_freem() call where the argument is known to be NULL

diffstat:

 sys/netipsec/keysock.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 20589681bbf5 -r 728033955309 sys/netipsec/keysock.c
--- a/sys/netipsec/keysock.c    Mon May 16 10:02:30 2011 +0000
+++ b/sys/netipsec/keysock.c    Mon May 16 10:04:02 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: keysock.c,v 1.19 2010/02/08 19:02:33 joerg Exp $       */
+/*     $NetBSD: keysock.c,v 1.20 2011/05/16 10:04:02 drochner Exp $    */
 /*     $FreeBSD: src/sys/netipsec/keysock.c,v 1.3.2.1 2003/01/24 05:11:36 sam Exp $    */
 /*     $KAME: keysock.c,v 1.25 2001/08/13 20:07:41 itojun Exp $        */
 
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: keysock.c,v 1.19 2010/02/08 19:02:33 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: keysock.c,v 1.20 2011/05/16 10:04:02 drochner Exp $");
 
 #include "opt_ipsec.h"
 
@@ -180,7 +180,6 @@
                        m = m_pullup(m, sizeof(struct sadb_msg));
                if (!m) {
                        PFKEY_STATINC(PFKEY_STAT_IN_NOMEM);
-                       m_freem(m);
                        return ENOBUFS;
                }
                m->m_pkthdr.len += sizeof(*pmsg);



Home | Main Index | Thread Index | Old Index