Skip to content
Permalink
Browse files
Fix: missing registry unlock on error
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
  • Loading branch information
dgoulet committed Oct 24, 2013
1 parent 24f63e2 commit e55eae3d3ca84cdd19bed5a881b9cc85ee48ffc0
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit e55eae3

Please sign in to comment.