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.
This commit is contained in:
Frdric Lcaille 2017-03-29 14:58:09 +02:00 committed by Willy Tarreau
parent 351b3a1780
commit acd4827eca

View File

@ -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);