X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=daemon%2Fnet.c;h=3cd12dca8a322d2c9443d8e4c5126e42edf69948;hb=c0865130e4ec5c82d0513d84d5ae16a9b350c2e5;hp=640da3beab3c8c6e832d40de4d91cec09ab89c52;hpb=c7185019854aa79630ff944e191f59582c675d8b;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);