wintrust: Remove redundant check of pbSignedDataMsg (Coverity).

This commit is contained in:
Juan Lang 2007-08-15 16:41:32 -07:00 committed by Alexandre Julliard
parent 1626da2bba
commit cf3535351a
1 changed files with 1 additions and 3 deletions

View File

@ -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);