diff --git a/src/proxy.c b/src/proxy.c index e38970106d..7a2d400567 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -1631,7 +1631,7 @@ static int proxy_defproxy_cpy(struct proxy *curproxy, const struct proxy *defpro char *tmpmsg = NULL; /* set default values from the specified default proxy */ - memcpy(&curproxy->defsrv, &defproxy->defsrv, sizeof(curproxy->defsrv)); + srv_settings_cpy(&curproxy->defsrv, &defproxy->defsrv, 0); curproxy->flags = (defproxy->flags & PR_FL_DISABLED); /* Only inherit from disabled flag */ curproxy->options = defproxy->options;