ssl/ssl_txt: fix NULL-check
authorTilman Keskinöz <arved@arved.at>
Thu, 17 May 2018 11:04:31 +0000 (13:04 +0200)
committerAndy Polyakov <appro@openssl.org>
Mon, 21 May 2018 19:59:18 +0000 (21:59 +0200)
commit1caa3bbf25796c1fb4dcfee1a3d5a554b8a161f9
treec5f0f4bfb37c47277b77df4b4d825bfadda52be3
parentbbe75a29dfdb6561f21b7d010ac18c52da4beb78
ssl/ssl_txt: fix NULL-check

NULL-check for cipher is redundant, instead check if cipher->name is NULL

While here fix formatting of BIO_printf calls as suggested by Andy Polyakov.

CLA: trivial

Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6282)

(cherry picked from commit d61e6040a02464f1dd41942ee1e17ef59822102d)
ssl/ssl_txt.c