From: Yutian Li Date: Tue, 30 Aug 2016 03:17:28 +0000 (+0800) Subject: Add padding spaces before printing algo. X-Git-Tag: OpenSSL_1_1_1-pre1~436 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=26a374a271dabd49f3fa7f43a74e05d34aca010e;p=oweals%2Fopenssl.git Add padding spaces before printing algo. CLA: trivial Reviewed-by: Paul Dale Reviewed-by: Rich Salz Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/1513) --- diff --git a/crypto/x509/t_x509.c b/crypto/x509/t_x509.c index ba6f9196d2..2ad7e63900 100644 --- a/crypto/x509/t_x509.c +++ b/crypto/x509/t_x509.c @@ -119,6 +119,9 @@ int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, if (!(cflag & X509_FLAG_NO_SIGNAME)) { const X509_ALGOR *tsig_alg = X509_get0_tbs_sigalg(x); + + if (BIO_puts(bp, " ") <= 0) + goto err; if (X509_signature_print(bp, tsig_alg, NULL) <= 0) goto err; }