diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index e9acf9a03f6b7f26cb070bff09ce39766acccadf..2d18b1bc493e23a32be58597d7275fb29f0166e9 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -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); }