mirror of
https://github.com/openssl/openssl.git
synced 2025-03-07 19:38:33 +08:00
check return value of BIO_write in PKCS7_decrypt
This commit is contained in:
parent
25bfdca16a
commit
66fdb1c0d4
@ -594,7 +594,11 @@ int PKCS7_decrypt(PKCS7 *p7, EVP_PKEY *pkey, X509 *cert, BIO *data, int flags)
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
BIO_write(data, buf, i);
|
if (BIO_write(data, buf, i) != i)
|
||||||
|
{
|
||||||
|
ret = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
BIO_free_all(tmpmem);
|
BIO_free_all(tmpmem);
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user