X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=daemon%2Fnet.c;h=3cd12dca8a322d2c9443d8e4c5126e42edf69948;hb=2dd01e6ee102502c267d582a7037014bbd5d36f7;hp=640da3beab3c8c6e832d40de4d91cec09ab89c52;hpb=27991d8b6d1fdbe35e21b86c2eb64117c9eb7260;p=doldaconnect.git diff --git a/daemon/net.c b/daemon/net.c index 640da3b..3cd12dc 100644 --- a/daemon/net.c +++ b/daemon/net.c @@ -128,6 +128,7 @@ int getpublicaddr(int af, struct sockaddr **addr, socklen_t *lenbuf) } else { free(ipv4); free(conf.ifc_buf); + close(sock); flog(LOG_WARNING, "could not locate an unambiguous interface for determining your public IP address - set net.publicif"); errno = ENFILE; /* XXX: There's no appropriate one for this... */ return(-1);