mirror of https://github.com/moparisthebest/curl
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);
|
snprintf(namebuf, sizeof(namebuf), "%s(%s)", type, name);
|
||||||
|
|
||||||
BN_print(mem, bn);
|
if(bn)
|
||||||
|
BN_print(mem, bn);
|
||||||
push_certinfo(namebuf, num);
|
push_certinfo(namebuf, num);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue