mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 22:31:28 +02:00
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:
parent
351b3a1780
commit
acd4827eca
@ -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)
|
if (curproxy->defsrv.ssl_ctx.crl_file != NULL)
|
||||||
newsrv->ssl_ctx.crl_file = strdup(curproxy->defsrv.ssl_ctx.crl_file);
|
newsrv->ssl_ctx.crl_file = strdup(curproxy->defsrv.ssl_ctx.crl_file);
|
||||||
if (curproxy->defsrv.ssl_ctx.client_crt != NULL)
|
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;
|
newsrv->ssl_ctx.verify = curproxy->defsrv.ssl_ctx.verify;
|
||||||
if (curproxy->defsrv.ssl_ctx.verify_host != NULL)
|
if (curproxy->defsrv.ssl_ctx.verify_host != NULL)
|
||||||
newsrv->ssl_ctx.verify_host = strdup(curproxy->defsrv.ssl_ctx.verify_host);
|
newsrv->ssl_ctx.verify_host = strdup(curproxy->defsrv.ssl_ctx.verify_host);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user