From: Christopher Faulet Date: Wed, 16 Mar 2022 08:52:10 +0000 (+0100) Subject: BUG/MEDIUM: cli/debug: Properly get the stream-int in all debug I/O handlers X-Git-Tag: v2.6-dev4~70 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fe14af30ecaf5a33d7dabf62f988b66937a15c49;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: cli/debug: Properly get the stream-int in all debug I/O handlers The appctx owner is not a stream-interface anymore. It is now a conn-stream. In the cli I/O handler for the command "debug dev fd", we still handle it as a stream-interface. It is now fixed. It is 2.6-specific, no backport is needed. --- diff --git a/src/debug.c b/src/debug.c index ebdbb885ef..73fe15972b 100644 --- a/src/debug.c +++ b/src/debug.c @@ -1040,7 +1040,7 @@ static int debug_parse_cli_fd(char **args, char *payload, struct appctx *appctx, */ static int debug_iohandler_fd(struct appctx *appctx) { - struct stream_interface *si = appctx->owner; + struct stream_interface *si = cs_si(appctx->owner); struct sockaddr_storage sa; struct stat statbuf; socklen_t salen, vlen;