Remove IP version matching restriction in ssl_RemoveSession

Co-Authored-By: lealem@wolfssl.com <lealem@wolfssl.com>
This commit is contained in:
Devin AI
2025-05-14 16:33:08 +00:00
parent 61bb5624f4
commit 8de9b9e69e

View File

@ -7677,11 +7677,7 @@ int ssl_RemoveSession(const char* clientIp, int clientPort,
}
}
/* Ensure IP versions match */
if (clientAddr.version != serverAddr.version) {
SetError(BAD_IPVER_STR, error, NULL, 0);
return ret;
}
/* No need to ensure IP versions match - client could use IPv4 while server uses IPv6 */
LOCK_SESSION();