Fix missing memory free when IPv6 is unsupported

This commit is contained in:
Gregor Richards 2017-02-21 17:42:09 -05:00
parent 4e1b4d051d
commit 22500914e1

View File

@ -149,12 +149,12 @@ static bool natt_open_port(struct natt_status *status,
status->have_inet6 = true;
status->ext_inet6_addr = *((struct sockaddr_in6 *) ext_addrinfo->ai_addr);
}
#endif
else
{
freeaddrinfo_retro(ext_addrinfo);
return false;
}
#endif
return true;