mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 06:11:32 +02:00
CLEANUP: stconn: Don't expect to have no sedesc on detach
The stream connector must always have a defined sedesc. So there is no reason to test it when the stconn is detached from the endpoint.
This commit is contained in:
parent
9b8d7a11c0
commit
82af3c684d
@ -341,9 +341,6 @@ static void sc_detach_endp(struct stconn **scp)
|
|||||||
if (!sc)
|
if (!sc)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!sc->sedesc)
|
|
||||||
goto reset_cs;
|
|
||||||
|
|
||||||
if (sc_ep_test(sc, SE_FL_T_MUX)) {
|
if (sc_ep_test(sc, SE_FL_T_MUX)) {
|
||||||
struct connection *conn = __sc_conn(sc);
|
struct connection *conn = __sc_conn(sc);
|
||||||
struct sedesc *sedesc = sc->sedesc;
|
struct sedesc *sedesc = sc->sedesc;
|
||||||
@ -385,7 +382,6 @@ static void sc_detach_endp(struct stconn **scp)
|
|||||||
sc_ep_set(sc, SE_FL_DETACHED);
|
sc_ep_set(sc, SE_FL_DETACHED);
|
||||||
}
|
}
|
||||||
|
|
||||||
reset_cs:
|
|
||||||
/* FIXME: Rest SC for now but must be reviewed. SC flags are only
|
/* FIXME: Rest SC for now but must be reviewed. SC flags are only
|
||||||
* connection related for now but this will evolved
|
* connection related for now but this will evolved
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user