npf_session_establish: fix previous. trunk
authorrmind <rmind@NetBSD.org>
Mon, 18 Mar 2013 00:17:20 +0000
branchtrunk
changeset 217353 bbdd7b10642a
parent 217352 ce20b64b66e5
child 217354 ecf5b7e19c96
npf_session_establish: fix previous.
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". */