Avoid segfault if ret==0.
Submitted by: Nils Larsch
This commit is contained in:
parent
919f8bcd21
commit
ce38bb1a8c
@ -488,6 +488,7 @@ BIGNUM *BN_mod_inverse(BIGNUM *in,
|
|||||||
err:
|
err:
|
||||||
if ((ret == NULL) && (in == NULL)) BN_free(R);
|
if ((ret == NULL) && (in == NULL)) BN_free(R);
|
||||||
BN_CTX_end(ctx);
|
BN_CTX_end(ctx);
|
||||||
bn_check_top(ret);
|
if (ret)
|
||||||
|
bn_check_top(ret);
|
||||||
return(ret);
|
return(ret);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user