summaryrefslogtreecommitdiffstats
path: root/crypto/bn/bn_prime.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2003-02-01 20:58:59 +0000
committerBen Laurie <ben@openssl.org>2003-02-01 20:58:59 +0000
commit26196762563f25d48466fb7168fd355d7651adb4 (patch)
tree7eaeb0048580554b8d6ba342d077c60ed7ed5377 /crypto/bn/bn_prime.c
parent33cc07f79acf91dfbe4970e94665c53f42c89112 (diff)
Old-style callbacks can be NULL!
Diffstat (limited to 'crypto/bn/bn_prime.c')
-rw-r--r--crypto/bn/bn_prime.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/bn/bn_prime.c b/crypto/bn/bn_prime.c
index 6c16029957..fd863933e5 100644
--- 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: