Quick and dirty fix for tot_recv_messages wrong count in e.g. secure_tls_client_c2c_tcp_relay.sh

This commit is contained in:
Mészáros Mihály 2020-04-30 12:15:54 +00:00
parent 8c6b2f6135
commit e228a5e745

View File

@ -680,6 +680,9 @@ static int client_read(app_ur_session *elem, int is_tcp_data, app_tcp_conn_info
if ((int)elem->in_buffer.len == clmessage_length) {
bcopy((elem->in_buffer.buf), &mi, sizeof(message_info));
miset=1;
} else {
/* TODO: make a more clean fix */
buffers=(int)elem->in_buffer.len / clmessage_length;
}
} else if (stun_is_indication(&(elem->in_buffer))) {