From: Yossi Gottlieb Date: Tue, 17 Nov 2015 11:16:35 +0000 (+0200) Subject: Better clarity. X-Git-Tag: dnsdist-1.0.0-alpha1~197^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a462407b074d78f9e8e93bf3adcf48842b8864c;p=pdns Better clarity. --- diff --git a/pdns/resolver.cc b/pdns/resolver.cc index 83eebb328..2ea39e430 100644 --- a/pdns/resolver.cc +++ b/pdns/resolver.cc @@ -58,7 +58,7 @@ int makeQuerySocket(const ComboAddress& local, bool udpOrTCP) int sock=socket(ourLocal.sin4.sin_family, udpOrTCP ? SOCK_DGRAM : SOCK_STREAM, 0); if(sock < 0) { if(errno == EAFNOSUPPORT && local.sin4.sin_family == AF_INET6) { - return sock; + return -1; } unixDie("Creating local resolver socket for "+ourLocal.toString()); }