crypt32: Return FALSE rather than crash if memory allocation fails. Fixes Coverity id 135.
This commit is contained in:
parent
71e394fb89
commit
e4a0633818
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue