From: Eric Leblond Date: Thu, 6 Sep 2012 20:39:02 +0000 (+0200) Subject: freebsd: fix function usage. X-Git-Tag: suricata-1.4beta2~90 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e168824d806736b38301eece5967c01ab16d421d;p=thirdparty%2Fsuricata.git freebsd: fix function usage. The unlock function was not correctly used in error treatment. --- diff --git a/src/source-ipfw.c b/src/source-ipfw.c index 36b079aeca..00403fde37 100644 --- a/src/source-ipfw.c +++ b/src/source-ipfw.c @@ -626,7 +626,7 @@ TmEcode IPFWSetVerdict(ThreadVars *tv, IPFWThreadVars *ptv, Packet *p) IPFWMutexLock(nq); if (sendto(nq->fd, GET_PKT_DATA(p), GET_PKT_LEN(p), 0,(struct sockaddr *)&nq->ipfw_sin, nq->ipfw_sinlen) == -1) { SCLogWarning(SC_WARN_IPFW_XMIT,"Write to ipfw divert socket failed: %s",strerror(errno)); - IPFWMutexUnlock(&nq->socket_lock); + IPFWMutexUnlock(nq); SCReturnInt(TM_ECODE_FAILED); }