fix for 95983, compiler warning revealed potential bug

This commit is contained in:
ian.mcgreer%sun.com 2001-11-06 20:32:43 +00:00
Родитель ca339ef311
Коммит cd8b28ce80
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -1684,12 +1684,15 @@ static int jar_validate_pkcs7
(jar_catch_bytes, NULL /*cb_arg*/, NULL /*getpassword*/, jar->mw,
NULL, NULL, NULL);
if (dcx != NULL)
if (dcx == NULL)
{
SEC_PKCS7DecoderUpdate (dcx, data, length);
cinfo = SEC_PKCS7DecoderFinish (dcx);
/* strange pkcs7 failure */
return JAR_ERR_PK7;
}
SEC_PKCS7DecoderUpdate (dcx, data, length);
cinfo = SEC_PKCS7DecoderFinish (dcx);
if (cinfo == NULL)
{
/* strange pkcs7 failure */