summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2005-09-04 17:33:40 +0000
committersam <sam@FreeBSD.org>2005-09-04 17:33:40 +0000
commit36e4de77c6a71eace2d215c345b6328ad8cfc296 (patch)
tree6ffdc551460ef13b62d698b20981605a5ba25ff0 /sys/netinet
parent3a5df528ddfaf9884de6daee416856069f5011dd (diff)
downloadFreeBSD-src-36e4de77c6a71eace2d215c345b6328ad8cfc296.zip
FreeBSD-src-36e4de77c6a71eace2d215c345b6328ad8cfc296.tar.gz
clear lock on error in O_LIMIT case of install_state
Submitted by: Ted Unangst MFC after: 3 days
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_fw2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/ip_fw2.c b/sys/netinet/ip_fw2.c
index 71c5416..77ac62f 100644
--- a/sys/netinet/ip_fw2.c
+++ b/sys/netinet/ip_fw2.c
@@ -1515,6 +1515,7 @@ install_state(struct ip_fw *rule, ipfw_insn_limit *cmd,
parent = lookup_dyn_parent(&id, rule);
if (parent == NULL) {
printf("ipfw: add parent failed\n");
+ IPFW_DYN_UNLOCK();
return 1;
}
if (parent->count >= cmd->conn_limit) {
OpenPOWER on IntegriCloud