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: de9a849a18
Change-Id: I6b6e1adf4ffc0c1ec847613f00fe269af640d42b
Signed-off-by: Georgy Borodin <bor1-go@yandex-team.ru>
This commit is contained in:

committed by
Florin Coras

parent
953fbd2b24
commit
bffd4461d2
@ -145,8 +145,11 @@ format_session (u8 * s, va_list * args)
|
|||||||
else if (ss->session_state == SESSION_STATE_CONNECTING)
|
else if (ss->session_state == SESSION_STATE_CONNECTING)
|
||||||
{
|
{
|
||||||
if (ss->flags & SESSION_F_HALF_OPEN)
|
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
|
else
|
||||||
s = format (s, "%U", format_transport_connection, tp,
|
s = format (s, "%U", format_transport_connection, tp,
|
||||||
ss->connection_index, ss->thread_index, verbose);
|
ss->connection_index, ss->thread_index, verbose);
|
||||||
|
Reference in New Issue
Block a user