clear lock on error in O_LIMIT case of install_state

Submitted by:	Ted Unangst
MFC after:	3 days
This commit is contained in:
sam 2005-09-04 17:33:40 +00:00
parent 3a5df528dd
commit 36e4de77c6

View File

@ -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) {