by request: let BN_dup(NULL) just return NULL

This commit is contained in:
Bodo Möller 1999-07-30 19:22:57 +00:00
parent 0dd25e3606
commit 8d85b33eb5

View File

@ -489,6 +489,8 @@ BIGNUM *BN_dup(const BIGNUM *a)
{
BIGNUM *r;
if (a == NULL) return NULL;
bn_check_top(a);
r=BN_new();