]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
ec/ecp_nistz256.c: fix Coverity nit.
authorAndy Polyakov <appro@openssl.org>
Tue, 24 Jul 2018 13:48:15 +0000 (15:48 +0200)
committerAndy Polyakov <appro@openssl.org>
Wed, 25 Jul 2018 13:45:18 +0000 (15:45 +0200)
|ctx| recently became unconditionally non-NULL and is already dereferenced
earlier.

Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/ec/ecp_nistz256.c

index 54c9ed280808da97a55aac01964fb2e20eb91e73..b0564bdbd04c56f9dc1bd63e3fd5ad9e5e9c5d8b 100644 (file)
@@ -1339,8 +1339,7 @@ __owur static int ecp_nistz256_points_mul(const EC_GROUP *group,
     ret = 1;
 
 err:
-    if (ctx)
-        BN_CTX_end(ctx);
+    BN_CTX_end(ctx);
     OPENSSL_free(new_points);
     OPENSSL_free(new_scalars);
     return ret;