[winpr,kerberos] fix possible NULL argument to strdup
This commit is contained in:
parent
d5b41bb8a0
commit
dbe92795e3
@ -902,7 +902,8 @@ static SECURITY_STATUS SEC_ENTRY kerberos_InitializeSecurityContextA(
|
||||
|
||||
isNewContext = TRUE;
|
||||
|
||||
context->targetHost = _strdup(host);
|
||||
if (host)
|
||||
context->targetHost = _strdup(host);
|
||||
if (!context->targetHost)
|
||||
{
|
||||
status = SEC_E_INSUFFICIENT_MEMORY;
|
||||
|
Loading…
Reference in New Issue
Block a user