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:57:18 +0000 (21:57 +0200)
commitd61e6040a02464f1dd41942ee1e17ef59822102d
tree68ba2d3bd9ad100b3ae1674510a8e6bc4230e440
parent6671c775e661b6bda139ec8154905bf566fb77c9
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)
ssl/ssl_txt.c