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

wintrust: Remove redundant check of pbSignedDataMsg (Coverity).

parent 1626da2b
...@@ -233,9 +233,7 @@ BOOL WINAPI CryptSIPGetSignedDataMsg(SIP_SUBJECTINFO* pSubjectInfo, DWORD* pdwEn ...@@ -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);
......
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