]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: mworker: PR_CAP already initialized with alloc_new_proxy()
authorWilliam Lallemand <wlallemand@haproxy.org>
Thu, 29 Jul 2021 13:35:48 +0000 (15:35 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 29 Jul 2021 13:35:48 +0000 (15:35 +0200)
Remove the PR_CAP initialization in mworker_cli_proxy_create() which is
already done in alloc_new_proxy().

src/cli.c

index 57fd4cc0a6173990830a04e885f51138776d4312..d3411ed9e1e5bbeeb5c479f1108d84c917654b23 100644 (file)
--- a/src/cli.c
+++ b/src/cli.c
@@ -2680,7 +2680,6 @@ int mworker_cli_proxy_create()
                goto error_proxy;
 
        mworker_proxy->mode = PR_MODE_CLI;
-       mworker_proxy->cap = PR_CAP_LISTEN | PR_CAP_INT; /* this is a listen section */
        mworker_proxy->maxconn = 10;                 /* default to 10 concurrent connections */
        mworker_proxy->timeout.client = 0; /* no timeout */
        mworker_proxy->conf.file = strdup("MASTER");