diff options
Diffstat (limited to 'src/tools/tor-resolve.c')
-rw-r--r-- | src/tools/tor-resolve.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/tor-resolve.c b/src/tools/tor-resolve.c index 23c1bf005e..0269de88fd 100644 --- a/src/tools/tor-resolve.c +++ b/src/tools/tor-resolve.c @@ -195,6 +195,7 @@ do_resolve(const char *hostname, uint32_t sockshost, uint16_t socksport, if ((len = build_socks_resolve_request(&req, "", hostname, reverse, version))<0) { log_err(LD_BUG,"Error generating SOCKS request"); + tor_assert(!req); return -1; } if (write_all(s, req, len, 1) != len) { |