Skip to content

Commit 7cf99ad

Browse files
authored
fix condition check
1 parent 4a02bfc commit 7cf99ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/IPAddress.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ bool IPAddress::fromString6(const char *address) {
201201
// :: allowed once
202202
return false;
203203
}
204-
if (*address != '\0' && *(address + 1) == ':') {
204+
if (*(address + 1) != '\0' && *(address + 1) == ':') {
205205
// ::: not allowed
206206
return false;
207207
}

0 commit comments

Comments
 (0)