[winpr,warnings] properly handle function return

This commit is contained in:
Armin Novak
2026-02-16 08:19:11 +01:00
parent 93dc6b8691
commit 81cf9f6cf0

View File

@@ -1567,9 +1567,7 @@ static SECURITY_STATUS SEC_ENTRY negotiate_QueryCredentialsAttributesA(
static SECURITY_STATUS SEC_ENTRY negotiate_FreeCredentialsHandle(PCredHandle phCredential)
{
MechCred* creds = NULL;
creds = sspi_SecureHandleGetLowerPointer(phCredential);
MechCred* creds = sspi_SecureHandleGetLowerPointer(phCredential);
if (!creds)
return SEC_E_INVALID_HANDLE;