From 77fb2d0eb2106fe66dd4ef41163aefe5dc8cd094 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 15 Nov 2024 16:41:42 +0300 Subject: [PATCH] engine: net_ws: fix misleading error when comparing IPv6 addresses --- engine/common/net_ws.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/common/net_ws.c b/engine/common/net_ws.c index 51b7e559..03454910 100644 --- a/engine/common/net_ws.c +++ b/engine/common/net_ws.c @@ -863,7 +863,8 @@ qboolean NET_CompareAdr( const netadr_t a, const netadr_t b ) if( a.type6 == NA_IP6 ) { if( a.port == b.port && !NET_NetadrIP6Compare( &a, &b )) - return true; + return true; + return false; } Con_DPrintf( S_ERROR "%s: bad address type\n", __func__ );