diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/vnet/session/quic_echo.c | 2 | ||||
-rw-r--r-- | src/vnet/session-apps/echo_client.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/vnet/session/quic_echo.c b/src/tests/vnet/session/quic_echo.c index c125d3be94c..af6666193f6 100644 --- a/src/tests/vnet/session/quic_echo.c +++ b/src/tests/vnet/session/quic_echo.c @@ -614,8 +614,8 @@ recv_data_chunk (echo_main_t * em, echo_session_t * s, u8 * rx_buf) n_to_read -= n_read; s->bytes_received += n_read; + ASSERT (s->bytes_to_receive >= n_read); s->bytes_to_receive -= n_read; - ASSERT (s->bytes_to_receive >= 0); } else break; diff --git a/src/vnet/session-apps/echo_client.c b/src/vnet/session-apps/echo_client.c index edc6a2a3990..bde9f489a34 100644 --- a/src/vnet/session-apps/echo_client.c +++ b/src/vnet/session-apps/echo_client.c @@ -381,7 +381,7 @@ quic_echo_clients_qsession_connected_callback (u32 app_index, u32 api_context, for (stream_n = 0; stream_n < ecm->quic_streams; stream_n++) { - clib_memset (a, 0, sizeof (a)); + clib_memset (a, 0, sizeof (*a)); a->app_index = ecm->app_index; a->api_context = -1 - api_context; clib_memcpy (&a->sep_ext, &sep, sizeof (sep)); |