diff options
author | Bodo Möller <bodo@openssl.org> | 1999-07-30 19:22:57 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-07-30 19:22:57 +0000 |
commit | 8d85b33eb53ca9ae739aaa6a6f30cb65a1ac6135 (patch) | |
tree | 13fd62db5cd458cee3df6a92f3a906d312848788 /crypto/bn/bn_lib.c | |
parent | 0dd25e3606f767381de8c8722b76f813c8e3b013 (diff) |
by request: let BN_dup(NULL) just return NULL
Diffstat (limited to 'crypto/bn/bn_lib.c')
-rw-r--r-- | crypto/bn/bn_lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/bn/bn_lib.c b/crypto/bn/bn_lib.c index 9c2c9d3238..5d62d88e8b 100644 --- a/crypto/bn/bn_lib.c +++ b/crypto/bn/bn_lib.c @@ -489,6 +489,8 @@ BIGNUM *BN_dup(const BIGNUM *a) { BIGNUM *r; + if (a == NULL) return NULL; + bn_check_top(a); r=BN_new(); |