From: Frédéric Lécaille Date: Wed, 29 Mar 2017 12:58:09 +0000 (+0200) Subject: BUG/MEDIUM: server: Wrong server default CRT filenames initialization. X-Git-Tag: v1.8-dev1~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=acd4827ecabebccc9e57fe091de23a1ea5ec95b7;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: server: Wrong server default CRT filenames initialization. This patch fixes a bug which came with 5e57643 commit where server default CRT filenames were initialized to the same value as server default CRL filenames. --- diff --git a/src/server.c b/src/server.c index eedd8782f0..0795e25696 100644 --- a/src/server.c +++ b/src/server.c @@ -1832,7 +1832,7 @@ int parse_server(const char *file, int linenum, char **args, struct proxy *curpr if (curproxy->defsrv.ssl_ctx.crl_file != NULL) newsrv->ssl_ctx.crl_file = strdup(curproxy->defsrv.ssl_ctx.crl_file); if (curproxy->defsrv.ssl_ctx.client_crt != NULL) - newsrv->ssl_ctx.client_crt = strdup(curproxy->defsrv.ssl_ctx.crl_file); + newsrv->ssl_ctx.client_crt = strdup(curproxy->defsrv.ssl_ctx.client_crt); newsrv->ssl_ctx.verify = curproxy->defsrv.ssl_ctx.verify; if (curproxy->defsrv.ssl_ctx.verify_host != NULL) newsrv->ssl_ctx.verify_host = strdup(curproxy->defsrv.ssl_ctx.verify_host);