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
Родитель b0a6d74f17
Коммит bd1ad42705
1 изменённых файлов: 6 добавлений и 3 удалений

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

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