diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2018-06-26 07:09:58 -0700 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2018-06-26 15:03:27 +0000 |
commit | 328f5cf440e1f5ca1f9329d4f856dc31d23909ef (patch) | |
tree | da390f84a9611f667c612062ef800c9a598f14a3 | |
parent | d2a016737575927d453081675502346ed5eac8dd (diff) |
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
-rw-r--r-- | epan/dissectors/packet-q931.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/dissectors/packet-q931.c b/epan/dissectors/packet-q931.c index 975bf27457..90d1be00e0 100644 --- a/epan/dissectors/packet-q931.c +++ b/epan/dissectors/packet-q931.c @@ -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); + } } /* |