diff --git a/toxcore/network.c b/toxcore/network.c index e7e754c5..b29045c3 100644 --- a/toxcore/network.c +++ b/toxcore/network.c @@ -1128,11 +1128,11 @@ bool ip_isset(const IP *ip) bool ipport_isset(const IP_Port *ipport) { if (!ipport) { - return true; + return false; } if (!ipport->port) { - return true; + return false; } return ip_isset(&ipport->ip);