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:
33cc07f
)
Old-style callbacks can be NULL!
author
Ben Laurie
<ben@openssl.org>
Sat, 1 Feb 2003 20:58:59 +0000
(20:58 +0000)
committer
Ben Laurie
<ben@openssl.org>
Sat, 1 Feb 2003 20:58:59 +0000
(20:58 +0000)
crypto/bn/bn_prime.c
patch
|
blob
|
history
diff --git
a/crypto/bn/bn_prime.c
b/crypto/bn/bn_prime.c
index 6c16029957ed7f43eac0c4783e3c68989121af4c..fd863933e5f8426abe3582ec53c2eb90e5c1d656 100644
(file)
--- a/
crypto/bn/bn_prime.c
+++ b/
crypto/bn/bn_prime.c
@@
-142,6
+142,8
@@
int BN_GENCB_call(BN_GENCB *cb, int a, int b)
{
case 1:
/* Deprecated-style callbacks */
+ if(!cb->cb.cb_1)
+ return 1;
cb->cb.cb_1(a, b, cb->arg);
return 1;
case 2: