summaryrefslogtreecommitdiff
path: root/src/or/dns.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-09-27 07:28:44 +0000
committerRoger Dingledine <arma@torproject.org>2003-09-27 07:28:44 +0000
commitdeac70439953008450fd1c17cad12c2a78a7c04b (patch)
treefe5f84e1bcdd9259ccac9ac2a3f47580cfe57287 /src/or/dns.c
parent9899e09b3b0d8249ba1edd97153a46a4e0c4dea3 (diff)
downloadtor-deac70439953008450fd1c17cad12c2a78a7c04b.tar.gz
tor-deac70439953008450fd1c17cad12c2a78a7c04b.zip
connection_new() can't ever fail
svn:r497
Diffstat (limited to 'src/or/dns.c')
-rw-r--r--src/or/dns.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/or/dns.c b/src/or/dns.c
index f10b3f7e9e..1b955cc004 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -382,10 +382,6 @@ static int spawn_dnsworker(void) {
close(fd[1]); /* we don't need the worker's side of the pipe */
conn = connection_new(CONN_TYPE_DNSWORKER);
- if(!conn) {
- close(fd[0]);
- return -1;
- }
set_socket_nonblocking(fd[0]);