Skip to content

Conversation

@AllSeeingEyeTolledEweSew

gethostbyaddr_r should set its struct hostent **result parameter to NULL on an error (reference). torsocks doesn't do this currently.

python, for example, gets tripped up by this:

$ torsocks python3 -c 'import socket; socket.getfqdn("127.0.0.1")'
1607419174 ERROR torsocks[3239]: Unable to resolve. Status reply: 4 (in socks5_recv_resolve_ptr_reply() at socks5.c:823)
Segmentation fault

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant