Q931: do not tap packet if no packet info is present

Follow-up of gd08a53a7b9

Change-Id: Ice15c7cf97c2d84e80e39944012c54947517232f
Reviewed-on: https://code.wireshark.org/review/28452
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Tomáš Kukosa <tomas.kukosa@ixperta.com>
Tested-by: Petri Dish Buildbot
This commit is contained in:
Pascal Quantin 2018-06-26 07:09:58 -07:00
parent d2a0167375
commit 328f5cf440
1 changed files with 3 additions and 1 deletions

View File

@ -3047,7 +3047,9 @@ dissect_q931_IEs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *root_tree,
}
codeset = locked_codeset;
}
tap_queue_packet(q931_tap, pinfo, q931_pi);
if (q931_pi) {
tap_queue_packet(q931_tap, pinfo, q931_pi);
}
}
/*