summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-05-21 13:18:42 +1000
committerPauli <paul.dale@oracle.com>2020-05-22 17:23:49 +1000
commit084b7bec0f615f70c108dfba988ed43d544e00ed (patch)
treedc8ec9d8c3e54c9489d4702982f27bdc79f51785 /crypto
parente1c6f76281473b8fe66954187e793108a0e8568c (diff)
Coverity 1463258: Incorrect expression (EVALUATION_ORDER)
Reviewed-by: Kurt Roeckx <kurt@roeckx.be> (Merged from https://github.com/openssl/openssl/pull/11892)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/x509/v3_ncons.c2
1 files changed, 1 insertions, 1 deletions
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);