]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: stream-int: do not clear the owner upon unregister
authorWilly Tarreau <w@1wt.eu>
Sat, 28 Dec 2013 20:06:18 +0000 (21:06 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 28 Dec 2013 20:33:37 +0000 (21:33 +0100)
Since the applet rework and the removal of the inter-task applets,
we must not clear the stream-interface's owner task anymore otherwise
we risk a crash when maintaining keep-alive with an applet. This is
not possible right now so there is no impact yet, but this bug is not
easy to track down. No backport is needed.

src/stream_interface.c

index bf0a40032fdb02b4bb96b43943c91c741f40c559..9aa19072c76a372210bcf787689293b379ccf663 100644 (file)
@@ -379,7 +379,6 @@ struct appctx *stream_int_register_handler(struct stream_interface *si, struct s
 void stream_int_unregister_handler(struct stream_interface *si)
 {
        si_detach(si);
-       si->owner = NULL;
 }
 
 /* This callback is used to send a valid PROXY protocol line to a socket being