mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-05-06 09:48:00 +00:00
BUG/MINOR: peers/config: always fill the bind_conf's argument
Some generic frontend errors mention the bind_conf by its name as "bind '%s'", but if this is used on peers "bind" lines it shows "(null)" because the argument is set to NULL in the call to bind_conf_uniq_alloc() instead of passing the argument. Fortunately that's trivial to fix. This may be backported to older versions.
This commit is contained in:
parent
bf91e3922b
commit
8d158132bd
@ -703,7 +703,7 @@ int cfg_parse_peers(const char *file, int linenum, char **args, int kwm)
|
|||||||
}
|
}
|
||||||
|
|
||||||
bind_conf = bind_conf_uniq_alloc(curpeers->peers_fe, file, linenum,
|
bind_conf = bind_conf_uniq_alloc(curpeers->peers_fe, file, linenum,
|
||||||
NULL, xprt_get(XPRT_RAW));
|
args[1], xprt_get(XPRT_RAW));
|
||||||
if (*args[0] == 'b') {
|
if (*args[0] == 'b') {
|
||||||
struct listener *l;
|
struct listener *l;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user