mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-21 05:06:56 +00: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.
|
||||
*/
|
||||
si_reset(&s->si[1]);
|
||||
si_detach(&s->si[1]);
|
||||
|
||||
if (likely(sess->fe->options2 & PR_O2_INDEPSTR))
|
||||
s->si[1].flags |= SI_FL_INDEP_STR;
|
||||
|
Loading…
Reference in New Issue
Block a user