mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
crypt32: Return FALSE rather than crash if memory allocation fails. Fixes Coverity id 135.
This commit is contained in:
parent
71e394fb89
commit
e4a0633818
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue