projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Revert to original...
[oweals/openssl.git]
/
crypto
/
asn1
/
tasn_prn.c
diff --git
a/crypto/asn1/tasn_prn.c
b/crypto/asn1/tasn_prn.c
index f595e385f21e21331457ca4cae5cbc15c86112d9..cf4c4ab3740f93b36a9fc8f9524e42b452d9df5d 100644
(file)
--- a/
crypto/asn1/tasn_prn.c
+++ b/
crypto/asn1/tasn_prn.c
@@
-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;