Coverity 1463258: Incorrect expression (EVALUATION_ORDER)
authorPauli <paul.dale@oracle.com>
Thu, 21 May 2020 03:18:42 +0000 (13:18 +1000)
committerPauli <paul.dale@oracle.com>
Fri, 22 May 2020 07:23:49 +0000 (17:23 +1000)
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/11892)

crypto/x509/v3_ncons.c

index d7b82b775e91f4a8b134f1f206d970f2a31cd5bd..4543ec2e11000d55df28a0262a89752792eb74bf 100644 (file)
@@ -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);