mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
openssl: avoid BN_print a NULL bignum
OpenSSL 1.1.0-pre seems to return NULL(?) for a whole lot of those numbers so make sure the function handles this. Reported-by: Linus Nordberg
This commit is contained in:
parent
c2b3f264cb
commit
ab691309ce
@ -2228,7 +2228,8 @@ static void pubkey_show(struct SessionHandle *data,
|
||||
|
||||
snprintf(namebuf, sizeof(namebuf), "%s(%s)", type, name);
|
||||
|
||||
BN_print(mem, bn);
|
||||
if(bn)
|
||||
BN_print(mem, bn);
|
||||
push_certinfo(namebuf, num);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user