]> granicus.if.org Git - pdns/commitdiff
Better clarity.
authorYossi Gottlieb <yossigo@gmail.com>
Tue, 17 Nov 2015 11:16:35 +0000 (13:16 +0200)
committerYossi Gottlieb <yossigo@gmail.com>
Tue, 17 Nov 2015 11:16:35 +0000 (13:16 +0200)
pdns/resolver.cc

index 83eebb328f575f1bb1702ca4cd4b73d8ac33dbe1..2ea39e43098c5ddc61865505d006724433a7cfb3 100644 (file)
@@ -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());
   }