From e168824d806736b38301eece5967c01ab16d421d Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Thu, 6 Sep 2012 22:39:02 +0200 Subject: [PATCH] freebsd: fix function usage. The unlock function was not correctly used in error treatment. --- src/source-ipfw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }