by request: let BN_dup(NULL) just return NULL
This commit is contained in:
parent
0dd25e3606
commit
8d85b33eb5
@ -489,6 +489,8 @@ BIGNUM *BN_dup(const BIGNUM *a)
|
|||||||
{
|
{
|
||||||
BIGNUM *r;
|
BIGNUM *r;
|
||||||
|
|
||||||
|
if (a == NULL) return NULL;
|
||||||
|
|
||||||
bn_check_top(a);
|
bn_check_top(a);
|
||||||
|
|
||||||
r=BN_new();
|
r=BN_new();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user