[tor-commits] [torsocks/master] Fix: missing registry unlock on error
dgoulet at torproject.org
dgoulet at torproject.org
Fri Apr 4 22:40:26 UTC 2014
commit e55eae3d3ca84cdd19bed5a881b9cc85ee48ffc0
Author: David Goulet <dgoulet at ev0ke.net>
Date: Thu Oct 24 13:11:10 2013 -0400
Fix: missing registry unlock on error
Signed-off-by: David Goulet <dgoulet at ev0ke.net>
---
src/lib/getpeername.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/getpeername.c b/src/lib/getpeername.c
index 8e2bd44..2315ace 100644
--- a/src/lib/getpeername.c
+++ b/src/lib/getpeername.c
@@ -43,10 +43,10 @@ LIBC_GETPEERNAME_RET_TYPE tsocks_getpeername(LIBC_GETPEERNAME_SIG)
ret = -1;
goto end;
}
- connection_registry_unlock();
errno = 0;
end:
+ connection_registry_unlock();
return ret;
}
More information about the tor-commits
mailing list