mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-12-15 14:41:32 +01:00
BUG/MINOR: quic: check applet_putchk() for 'show quic' first line
Ensure applet_putchk() return value is checked when outputing via the CLI 'show quic' header line. This is only to align with other usages of the same function, as trash output buffer should always be large enough for it. As such, the command is simply aborted if this is not the case. This should fix coverity report from github issue #3139. This could be backported up to 2.8.
This commit is contained in:
parent
8d31784c0f
commit
5067a15870
@ -460,7 +460,10 @@ static int cli_io_handler_dump_quic(struct appctx *appctx)
|
||||
"in_flight infl_p lost_p "
|
||||
"Local Address Foreign Address "
|
||||
"local & remote CIDs\n");
|
||||
applet_putchk(appctx, &trash);
|
||||
if (applet_putchk(appctx, &trash) == -1) {
|
||||
/* Trash buf too short without any data emitted yet, should never happen. */
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user