diff --git a/source/network/tests/test_StunClient.h b/source/network/tests/test_StunClient.h index d2abcf810e..b3c89e88a1 100644 --- a/source/network/tests/test_StunClient.h +++ b/source/network/tests/test_StunClient.h @@ -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;