Commit e4a06338 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Return FALSE rather than crash if memory allocation fails. Fixes Coverity id 135.

parent 71e394fb
......@@ -607,6 +607,11 @@ static BOOL CRYPT_AcquirePrivateKeyFromProvInfo(PCCERT_CONTEXT pCert,
CERT_KEY_PROV_INFO_PROP_ID, info, &size);
allocated = TRUE;
}
else
{
SetLastError(ERROR_OUTOFMEMORY);
ret = FALSE;
}
}
else
SetLastError(CRYPT_E_NO_KEY_PROPERTY);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment