]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: server: Wrong server default CRT filenames initialization.
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 29 Mar 2017 12:58:09 +0000 (14:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 29 Mar 2017 14:37:56 +0000 (16:37 +0200)
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.

src/server.c

index eedd8782f0ef8bc6c07ee9cb58a9361629f3d316..0795e25696585238495cc012392aec78fa4835c3 100644 (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);