summaryrefslogtreecommitdiffstats
path: root/crypto/x509
diff options
context:
space:
mode:
authorKurt Roeckx <kurt@roeckx.be>2017-01-16 00:04:31 +0100
committerKurt Roeckx <kurt@roeckx.be>2017-01-16 04:51:03 +0100
commit98bdd4363bd657304d88fb4b64a684e26c66b774 (patch)
treeb1d81eb1c8a07e19f0a887bbc51366d1fac60d2b /crypto/x509
parentc565e99a14bf43f11d006d36612fe7943f9e817f (diff)
Add missing braces.
Reviewed-by: Richard Levitte <levitte@openssl.org> GH: #2234 (cherry picked from commit c4a60150914fc260c3fc2854e13372c870bdde76)
Diffstat (limited to 'crypto/x509')
-rw-r--r--crypto/x509/t_x509.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/x509/t_x509.c b/crypto/x509/t_x509.c
index 5119c0e6f7..eb65d88732 100644
--- a/crypto/x509/t_x509.c
+++ b/crypto/x509/t_x509.c
@@ -97,9 +97,10 @@ int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags,
if (bs->type == V_ASN1_NEG_INTEGER) {
ul = 0 - (unsigned long)l;
neg = "-";
- } else
+ } else {
ul = l;
neg = "";
+ }
if (BIO_printf(bp, " %s%lu (%s0x%lx)\n", neg, ul, neg, ul) <= 0)
goto err;
} else {