Commit ab691309 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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
parent c2b3f264
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2228,6 +2228,7 @@ static void pubkey_show(struct SessionHandle *data,

  snprintf(namebuf, sizeof(namebuf), "%s(%s)", type, name);

  if(bn)
    BN_print(mem, bn);
  push_certinfo(namebuf, num);
}