projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dd25e3
)
by request: let BN_dup(NULL) just return NULL
author
Bodo Möller
<bodo@openssl.org>
Fri, 30 Jul 1999 19:22:57 +0000
(19:22 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Fri, 30 Jul 1999 19:22:57 +0000
(19:22 +0000)
crypto/bn/bn_lib.c
patch
|
blob
|
history
diff --git
a/crypto/bn/bn_lib.c
b/crypto/bn/bn_lib.c
index 9c2c9d3238a4b682c1e73eab6f0788a658fa8e9a..5d62d88e8b603ed4ad06c4becbfb45e7e0a8d8c2 100644
(file)
--- 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();