mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 14:51:27 +02:00
CLEANUP: stream: remove a useless call to si_detach()
It's pointless to call si_detach() after si_reset() since it does nothing due to si->end being NULL.
This commit is contained in:
parent
4c5490ab9c
commit
069b0c8e6f
@ -160,7 +160,6 @@ struct stream *stream_new(struct session *sess, struct task *t, enum obj_type *o
|
|||||||
* callbacks will be initialized before attempting to connect.
|
* callbacks will be initialized before attempting to connect.
|
||||||
*/
|
*/
|
||||||
si_reset(&s->si[1]);
|
si_reset(&s->si[1]);
|
||||||
si_detach(&s->si[1]);
|
|
||||||
|
|
||||||
if (likely(sess->fe->options2 & PR_O2_INDEPSTR))
|
if (likely(sess->fe->options2 & PR_O2_INDEPSTR))
|
||||||
s->si[1].flags |= SI_FL_INDEP_STR;
|
s->si[1].flags |= SI_FL_INDEP_STR;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user