Browse Source

ec/ecp_nistz256.c: fix Coverity nit.

|ctx| recently became unconditionally non-NULL and is already dereferenced
earlier.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Andy Polyakov 5 years ago
parent
commit
7b953da40d
1 changed files with 1 additions and 2 deletions
  1. 1 2
      crypto/ec/ecp_nistz256.c

+ 1 - 2
crypto/ec/ecp_nistz256.c

@@ -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;