diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2001-06-26 12:04:35 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2001-06-26 12:04:35 +0000 |
commit | 1e325f614913435d214c3f5a25bb38a9aacbcb54 (patch) | |
tree | a8f62d6f9ec4de89cc7b3f1ce7b53a8479fb5881 /crypto/x509/x509_obj.c | |
parent | c458a3319687a15893bc8d14831a770a68062421 (diff) | |
download | openssl-1e325f614913435d214c3f5a25bb38a9aacbcb54.tar.gz |
Handle empty X509_NAME in printing routines.
Diffstat (limited to 'crypto/x509/x509_obj.c')
-rw-r--r-- | crypto/x509/x509_obj.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/x509/x509_obj.c b/crypto/x509/x509_obj.c index 6a3ba8eb15..f0271fdfa1 100644 --- a/crypto/x509/x509_obj.c +++ b/crypto/x509/x509_obj.c @@ -214,6 +214,8 @@ int i; } else p=buf; + if (i == 0) + *p = '\0'; return(p); err: X509err(X509_F_X509_NAME_ONELINE,ERR_R_MALLOC_FAILURE); |