[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [torsocks/master] Fix: missing registry unlock on error
commit e55eae3d3ca84cdd19bed5a881b9cc85ee48ffc0
Author: David Goulet <dgoulet@xxxxxxxxx>
Date: Thu Oct 24 13:11:10 2013 -0400
Fix: missing registry unlock on error
Signed-off-by: David Goulet <dgoulet@xxxxxxxxx>
---
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 mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits