mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
a little help for dfc to debug his "resolve 800 things at once" test
svn:r2978
This commit is contained in:
@@ -81,8 +81,10 @@ parse_socks4a_resolve_response(const char *response, size_t len,
|
||||
status = (uint8_t)response[1];
|
||||
if (get_uint16(response+2)!=0) /* port: 0 */
|
||||
return -1;
|
||||
if (status != 90)
|
||||
if (status != 90) {
|
||||
log_fn(LOG_WARN,"Got status response '%d', meaning not success.", status);
|
||||
return -1;
|
||||
}
|
||||
|
||||
*addr_out = ntohl(get_uint32(response+4));
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user