mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-27 21:06:45 -04:00
MINOR: backend: add a BUG_ON if conn mux NULL in connect_server
Currently, there seems to be no way to have the transport layer ready but not the mux in the function connect_server. Add a BUG_ON to report if this implicit condition is not true anymore. This should fix coverity report from github issue #1120.
This commit is contained in:
parent
eef7f7fe68
commit
d7faa3d6e9
1 changed files with 5 additions and 0 deletions
|
|
@ -1585,6 +1585,11 @@ skip_reuse:
|
|||
srv_conn->mux->reset(srv_conn);
|
||||
}
|
||||
else {
|
||||
/* Currently there seems to be no known cases of xprt ready
|
||||
* without the mux installed here.
|
||||
*/
|
||||
BUG_ON(!srv_conn->mux);
|
||||
|
||||
/* Only consider we're doing reuse if the connection was
|
||||
* ready.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue