mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
Old-style callbacks can be NULL!
This commit is contained in:
parent
33cc07f79a
commit
2619676256
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user