Source-Changes-HG archive

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

[src/trunk]: src/sys/net/npf npf_session_establish: fix previous.



details:   https://anonhg.NetBSD.org/src/rev/fa92a05e25a5
branches:  trunk
changeset: 785529:fa92a05e25a5
user:      rmind <rmind%NetBSD.org@localhost>
date:      Mon Mar 18 00:17:20 2013 +0000

description:
npf_session_establish: fix previous.

diffstat:

 sys/net/npf/npf_session.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 50f8974a4313 -r fa92a05e25a5 sys/net/npf/npf_session.c
--- a/sys/net/npf/npf_session.c Mon Mar 18 00:14:57 2013 +0000
+++ b/sys/net/npf/npf_session.c Mon Mar 18 00:17:20 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: npf_session.c,v 1.22 2013/03/18 00:14:57 rmind Exp $   */
+/*     $NetBSD: npf_session.c,v 1.23 2013/03/18 00:17:20 rmind Exp $   */
 
 /*-
  * Copyright (c) 2010-2012 The NetBSD Foundation, Inc.
@@ -80,7 +80,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf_session.c,v 1.22 2013/03/18 00:14:57 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf_session.c,v 1.23 2013/03/18 00:17:20 rmind Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -687,7 +687,8 @@
 
        /* Setup "forwards" entry. */
        if (!npf_session_fillent(npc, fw)) {
-               return NULL;
+               ok = false;
+               goto out;
        }
 
        /* Setup inverted "backwards". */



Home | Main Index | Thread Index | Old Index