Commit d5cc2f19 authored by Nils Larsch's avatar Nils Larsch
Browse files

fix error found by coverity: check if ctx is != NULL before calling BN_CTX_end()

parent b7a80146
Loading
Loading
Loading
Loading
+1 −0
Changes for crypto/ec/ec_mult.c: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -879,6 +879,7 @@ int ec_wNAF_precompute_mult(EC_GROUP *group, BN_CTX *ctx)

	ret = 1;
 err:
	if (ctx != NULL)
		BN_CTX_end(ctx);
	if (new_ctx != NULL)
		BN_CTX_free(new_ctx);