mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
BUG/MAJOR: ns: HAProxy segfault if the cli_conn is not from a network connection
The path "MAJOR: namespace: add Linux network namespace support" doesn't
permit to use internal data producer like a "peers synchronisation"
system. The result is a segfault when the internal application starts.
This patch fix the commit b3e54fe387
It is introduced in 1.6dev version, it doesn't need to be backported.
This commit is contained in:
parent
07e78c50b5
commit
fe1ebcd2cf
1 changed files with 1 additions and 1 deletions
|
|
@ -804,7 +804,7 @@ int assign_server_address(struct session *s)
|
|||
}
|
||||
|
||||
/* Copy network namespace from client connection */
|
||||
srv_conn->proxy_netns = cli_conn->proxy_netns;
|
||||
srv_conn->proxy_netns = cli_conn ? cli_conn->proxy_netns : NULL;
|
||||
|
||||
s->flags |= SN_ADDR_SET;
|
||||
return SRV_STATUS_OK;
|
||||
|
|
|
|||
Loading…
Reference in a new issue