From: Ben Laurie Date: Sat, 1 Feb 2003 20:58:59 +0000 (+0000) Subject: Old-style callbacks can be NULL! X-Git-Tag: BEN_FIPS_TEST_1~38^2~339 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=26196762563f25d48466fb7168fd355d7651adb4;p=oweals%2Fopenssl.git Old-style callbacks can be NULL! --- 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: