Commit eeb821f7 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 47d55666
Loading
Loading
Loading
Loading
+2 −1
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);