wintrust: Remove redundant check of pbSignedDataMsg (Coverity).
This commit is contained in:
parent
1626da2bba
commit
cf3535351a
|
@ -233,9 +233,7 @@ BOOL WINAPI CryptSIPGetSignedDataMsg(SIP_SUBJECTINFO* pSubjectInfo, DWORD* pdwEn
|
||||||
&len);
|
&len);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
goto error;
|
goto error;
|
||||||
if (!pbSignedDataMsg)
|
if (*pcbSignedDataMsg < pCert->dwLength)
|
||||||
*pcbSignedDataMsg = pCert->dwLength;
|
|
||||||
else if (*pcbSignedDataMsg < pCert->dwLength)
|
|
||||||
{
|
{
|
||||||
*pcbSignedDataMsg = pCert->dwLength;
|
*pcbSignedDataMsg = pCert->dwLength;
|
||||||
SetLastError(ERROR_INSUFFICIENT_BUFFER);
|
SetLastError(ERROR_INSUFFICIENT_BUFFER);
|
||||||
|
|
Loading…
Reference in New Issue