зеркало из https://github.com/mozilla/pjs.git
fix for 95983, compiler warning revealed potential bug
This commit is contained in:
Родитель
b0a6d74f17
Коммит
bd1ad42705
|
@ -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 */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче