From b90506e995d44dee0ef4dd0324b56b59154256c2 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Mon, 3 Oct 2016 15:37:47 +0100 Subject: [PATCH] Fix linebreaks in the tls_construct_client_certificate function Reviewed-by: Rich Salz --- ssl/statem/statem_clnt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssl/statem/statem_clnt.c b/ssl/statem/statem_clnt.c index 08b1239d57..51513d5470 100644 --- a/ssl/statem/statem_clnt.c +++ b/ssl/statem/statem_clnt.c @@ -2736,8 +2736,8 @@ WORK_STATE tls_prepare_client_certificate(SSL *s, WORK_STATE wst) int tls_construct_client_certificate(SSL *s, WPACKET *pkt) { if (!ssl3_output_cert_chain(s, pkt, - (s->s3->tmp.cert_req == - 2) ? NULL : s->cert->key)) { + (s->s3->tmp.cert_req == 2) ? NULL + : s->cert->key)) { SSLerr(SSL_F_TLS_CONSTRUCT_CLIENT_CERTIFICATE, ERR_R_INTERNAL_ERROR); ssl3_send_alert(s, SSL3_AL_FATAL, SSL_AD_INTERNAL_ERROR); return 0;