commit e55eae3d3ca84cdd19bed5a881b9cc85ee48ffc0 Author: David Goulet dgoulet@ev0ke.net Date: Thu Oct 24 13:11:10 2013 -0400
Fix: missing registry unlock on error
Signed-off-by: David Goulet dgoulet@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; }
tor-commits@lists.torproject.org