aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-02-11 17:32:58 -0500
committerNick Mathewson <nickm@torproject.org>2013-02-11 17:32:58 -0500
commite5a987fbb8cd5574be392abed3e9f5f366dacc47 (patch)
tree9729387bfa7290a866b3bb93552e07cdc8dd650d
parent99457ee7763a2a93cdbaa611a3243e2eb715db65 (diff)
downloadtor-e5a987fbb8cd5574be392abed3e9f5f366dacc47.tar
tor-e5a987fbb8cd5574be392abed3e9f5f366dacc47.tar.gz
Don't tor_close_socket(-1) in tor-resolve.
Bugfix on 96b1bd4fb8e64. Not in any released Tor.
-rw-r--r--src/tools/tor-resolve.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/tor-resolve.c b/src/tools/tor-resolve.c
index 9b3aa98d1..306f6c66a 100644
--- a/src/tools/tor-resolve.c
+++ b/src/tools/tor-resolve.c
@@ -201,7 +201,7 @@ do_resolve(const char *hostname, uint32_t sockshost, uint16_t socksport,
s = tor_open_socket(PF_INET,SOCK_STREAM,IPPROTO_TCP);
if (s<0) {
log_sock_error("creating_socket", -1);
- goto err;
+ return -1;
}
memset(&socksaddr, 0, sizeof(socksaddr));