Commit ce38bb1a authored by Ulf Möller's avatar Ulf Möller
Browse files

Avoid segfault if ret==0.

Submitted by: Nils Larsch
parent 919f8bcd
Loading
Loading
Loading
Loading
+1 −0
Changes for crypto/bn/bn_gcd.c: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -488,6 +488,7 @@ BIGNUM *BN_mod_inverse(BIGNUM *in,
err:
	if ((ret == NULL) && (in == NULL)) BN_free(R);
	BN_CTX_end(ctx);
	if (ret)
		bn_check_top(ret);
	return(ret);
	}