Fix FD leak on MacOS.

This commit is contained in:
Adam Ierymenko 2021-11-15 17:17:05 -05:00
parent c890f1762a
commit 0e798222a7
No known key found for this signature in database
GPG Key ID: C8877CF2D7A5D7F3

View File

@ -336,6 +336,7 @@ class Binder {
// if this is a temporary IPv6 address, skip to the next address
if (flags & IN6_IFF_TEMPORARY) {
close(infoSock);
char buf[64];
#ifdef ZT_TRACE
fprintf(stderr, "skip binding to temporary IPv6 address: %s\n", ip.toIpString(buf));