From 084b7bec0f615f70c108dfba988ed43d544e00ed Mon Sep 17 00:00:00 2001 From: Pauli Date: Thu, 21 May 2020 13:18:42 +1000 Subject: [PATCH] Coverity 1463258: Incorrect expression (EVALUATION_ORDER) Reviewed-by: Kurt Roeckx (Merged from https://github.com/openssl/openssl/pull/11892) --- crypto/x509/v3_ncons.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/x509/v3_ncons.c b/crypto/x509/v3_ncons.c index d7b82b775e..4543ec2e11 100644 --- a/crypto/x509/v3_ncons.c +++ b/crypto/x509/v3_ncons.c @@ -197,7 +197,7 @@ static int print_nc_ipadd(BIO *bp, ASN1_OCTET_STRING *ip) int len2 = ip->length - len1; char *ip1 = ipaddr_to_asc(ip->data, len1); char *ip2 = ipaddr_to_asc(ip->data + len1, len2); - int ret = ret = ip1 != NULL && ip2 != NULL + int ret = ip1 != NULL && ip2 != NULL && BIO_printf(bp, "IP:%s/%s", ip1, ip2) > 0; OPENSSL_free(ip1); -- 2.34.1