SIP statistics: use flipped indices for tables when incrementing stats

Change-Id: I22ed38b1c2d7849e8930149fb39ee14fa198a6e1
Reviewed-on: https://code.wireshark.org/review/24771
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
This commit is contained in:
Martin Mathieson 2017-12-11 22:33:11 +00:00
parent 7617af1d89
commit 10e9846252
1 changed files with 2 additions and 2 deletions

View File

@ -5571,7 +5571,7 @@ sip_stat_packet(void *tapdata, packet_info *pinfo _U_, epan_dissect_t *edt _U_,
if (info_value->request_method && info_value->response_code < 1) {
/* Request table */
stat_tap_table *req_table = g_array_index(stat_data->stat_tap_data->tables, stat_tap_table*, 0);
stat_tap_table *req_table = g_array_index(stat_data->stat_tap_data->tables, stat_tap_table*, 1);
stat_tap_table_item_type *item_data;
guint element;
@ -5586,7 +5586,7 @@ sip_stat_packet(void *tapdata, packet_info *pinfo _U_, epan_dissect_t *edt _U_,
} else if (info_value->response_code > 0) {
/* Response table */
stat_tap_table *resp_table = g_array_index(stat_data->stat_tap_data->tables, stat_tap_table*, 1);
stat_tap_table *resp_table = g_array_index(stat_data->stat_tap_data->tables, stat_tap_table*, 0);
guint response_code = info_value->response_code;
stat_tap_table_item_type *item_data;
guint element;