提交 f3481ca2 编写于 作者: D Dr. Stephen Henson

Print out zero length string properly.

上级 ba30bad5
......@@ -506,7 +506,8 @@ static int asn1_print_obstring_ctx(BIO *out, ASN1_STRING *str, int indent,
}
else if (BIO_puts(out, "\n") <= 0)
return 0;
if (BIO_dump_indent(out, (char *)str->data, str->length,
if ((str->length > 0)
&& BIO_dump_indent(out, (char *)str->data, str->length,
indent + 2) <= 0)
return 0;
return 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册