diff options
author | Georgy Borodin <bor1-go@yandex-team.ru> | 2023-11-28 16:04:27 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2023-11-28 21:32:03 +0000 |
commit | bffd4461d2a49063a41f34ca73bcb2249e205651 (patch) | |
tree | bb7ed2bbe50adcbb5c0a3314de8e3ff84907684a /src/vnet/session/session_cli.c | |
parent | 953fbd2b24f09dad558a15a820d3a6c74d6c875f (diff) |
session: fix asan failure
fix asan failure when params number is less then 3:
functions that are set as format_half_open pointer values have
different number of arguments
Type: fix
Fixes: de9a849a18514f0b09bb5f57a73f6a57ee425c76
Change-Id: I6b6e1adf4ffc0c1ec847613f00fe269af640d42b
Signed-off-by: Georgy Borodin <bor1-go@yandex-team.ru>
Diffstat (limited to 'src/vnet/session/session_cli.c')
-rw-r--r-- | src/vnet/session/session_cli.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/vnet/session/session_cli.c b/src/vnet/session/session_cli.c index ba2cba02164..5d514e7091c 100644 --- a/src/vnet/session/session_cli.c +++ b/src/vnet/session/session_cli.c @@ -145,8 +145,11 @@ format_session (u8 * s, va_list * args) else if (ss->session_state == SESSION_STATE_CONNECTING) { if (ss->flags & SESSION_F_HALF_OPEN) - s = format (s, "%U%v", format_transport_half_open_connection, tp, - ss->connection_index, ss->thread_index, verbose, str); + { + s = format (s, "%U", format_transport_half_open_connection, tp, + ss->connection_index, ss->thread_index, verbose); + s = format (s, "%v", str); + } else s = format (s, "%U", format_transport_connection, tp, ss->connection_index, ss->thread_index, verbose); |