[core,credssp_auth] Fix faulty string length check in credssp_auth_client_init_cred_attributes

This commit is contained in:
Richard Markiewicz
2025-02-21 13:32:38 -05:00
parent bf89aaf969
commit 3ad28b2771

View File

@@ -207,7 +207,7 @@ static BOOL credssp_auth_client_init_cred_attributes(rdpCredsspAuth* auth)
SSIZE_T str_size = 0;
str_size = ConvertUtf8ToWChar(auth->kerberosSettings.kdcUrl, NULL, 0);
if ((str_size <= 0) || (str_size <= UINT16_MAX / 2))
if ((str_size <= 0) || (str_size >= UINT16_MAX / 2))
return FALSE;
str_size++;