[coverity] 1543043 Dereference null return value
This commit is contained in:
parent
7bf76ab67f
commit
9ced090cea
@ -1304,6 +1304,9 @@ static KRB_CONTEXT* get_context(PCtxtHandle phContext)
|
||||
return NULL;
|
||||
|
||||
TCHAR* name = sspi_SecureHandleGetUpperPointer(phContext);
|
||||
if (!name)
|
||||
return NULL;
|
||||
|
||||
if (_tcscmp(KERBEROS_SSP_NAME, name) != 0)
|
||||
return NULL;
|
||||
return sspi_SecureHandleGetLowerPointer(phContext);
|
||||
|
Loading…
Reference in New Issue
Block a user