From 0a462407b074d78f9e8e93bf3adcf48842b8864c Mon Sep 17 00:00:00 2001 From: Yossi Gottlieb Date: Tue, 17 Nov 2015 13:16:35 +0200 Subject: [PATCH] Better clarity. --- pdns/resolver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } -- 2.40.0