Skip to content

Commit

Permalink
Fix: missing registry unlock on error
Browse files Browse the repository at this point in the history
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
  • Loading branch information
dgoulet committed Oct 24, 2013
1 parent 24f63e2 commit e55eae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/getpeername.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit e55eae3

Please sign in to comment.