1
0
forked from mirrors/0ad

Fix -Wtautological-overlap-compare in stun test

Fix the minimal check for an invalid IP returned.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser
2025-11-10 11:38:50 +01:00
parent 32edc28cda
commit 4f6d4a91b0
+1 -1
View File
@@ -55,7 +55,7 @@ public:
{
if (c == '.')
++dots;
else if (c < '0' && c > '9')
else if (c < '0' || c > '9')
{
TS_FAIL("StunClient::FindLocalIP did not return a valid IPV4 address: wrong character");
return;