提交 aa8dfbc4 编写于 作者: B Bernd Edlinger

Fix error handling in get_header_and_data.

Reviewed-by: NTim Hudson <tjh@openssl.org>
Reviewed-by: NBen Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/3896)
上级 e1ca9e1f
...@@ -859,7 +859,8 @@ static int get_header_and_data(BIO *bp, BIO **header, BIO **data, char *name, ...@@ -859,7 +859,8 @@ static int get_header_and_data(BIO *bp, BIO **header, BIO **data, char *name,
* Else, a line of text -- could be header or data; we don't * Else, a line of text -- could be header or data; we don't
* know yet. Just pass it through. * know yet. Just pass it through.
*/ */
BIO_puts(tmp, linebuf); if (BIO_puts(tmp, linebuf) < 0)
goto err;
/* /*
* Only encrypted files need the line length check applied. * Only encrypted files need the line length check applied.
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册