Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Dec 2008 20:34:41 +0000 (UTC)
From:      Kip Macy <kmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r186054 - head/sys/netinet
Message-ID:  <200812132034.mBDKYfmb039092@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kmacy
Date: Sat Dec 13 20:34:41 2008
New Revision: 186054
URL: http://svn.freebsd.org/changeset/base/186054

Log:
  version that will compile

Modified:
  head/sys/netinet/ip_fw2.c

Modified: head/sys/netinet/ip_fw2.c
==============================================================================
--- head/sys/netinet/ip_fw2.c	Sat Dec 13 20:18:05 2008	(r186053)
+++ head/sys/netinet/ip_fw2.c	Sat Dec 13 20:34:41 2008	(r186054)
@@ -1814,6 +1814,7 @@ add_table_entry(struct ip_fw_chain *ch, 
 	INIT_VNET_IPFW(curvnet);
 	struct radix_node_head *rnh;
 	struct table_entry *ent;
+	struct radix_node *rn;
 
 	if (tbl >= IPFW_TABLES_MAX)
 		return (EINVAL);
@@ -1827,9 +1828,9 @@ add_table_entry(struct ip_fw_chain *ch, 
 	ent->addr.sin_addr.s_addr = addr & ent->mask.sin_addr.s_addr;
 	IPFW_WLOCK(ch);
 	RADIX_NODE_HEAD_LOCK(rnh);
-	if (rnh->rnh_addaddr(&ent->addr, &ent->mask, rnh, (void *)ent) ==
+	rn = rnh->rnh_addaddr(&ent->addr, &ent->mask, rnh, (void *)ent);
 	RADIX_NODE_HEAD_UNLOCK(rnh);
-	    NULL) {
+	if (rn == NULL) {
 		IPFW_WUNLOCK(ch);
 		free(ent, M_IPFW_TBL);
 		return (EEXIST);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812132034.mBDKYfmb039092>