Skip to content
Snippets Groups Projects
Commit 562957e0 authored by Guinness's avatar Guinness Committed by David Goulet
Browse files

socks: Returns 0xF6 only if BAD_HOSTNAME


This commit modifies the behavior of `parse_extended_address` in such a way
that if it fails, it will always return a `BAD_HOSTNAME` value, which is then
used to return the 0xF6 extended error code.  This way, in any case that is
not a valid v2 address, we return the 0xF6 error code, which is the expected
behavior.

Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
parent 9603d8af
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment