diff options
author | Anders <anders.broman@ericsson.com> | 2015-05-21 17:27:12 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-05-21 15:33:23 +0000 |
commit | 0289d5c2b59f8b79dba5484426c8cdd7292d48dd (patch) | |
tree | 5e79fc9e32d85a21b66605ba49cc406d3b1e5dbd /epan/dissectors/packet-nsip.c | |
parent | 8999634b172231807c1da4a7298a8cecfc18b1da (diff) | |
download | wireshark-0289d5c2b59f8b79dba5484426c8cdd7292d48dd.tar.gz |
[NSIP GPRS-NS] Fix a crash due to not NULL terminated hf arrays for
proto_tree_add_bitmask().
Change-Id: I65adad6a33b3d6b199d54160bce85759a35607d6
Reviewed-on: https://code.wireshark.org/review/8575
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-nsip.c')
-rw-r--r-- | epan/dissectors/packet-nsip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-nsip.c b/epan/dissectors/packet-nsip.c index cbf5af7b4c..8c01ab31b2 100644 --- a/epan/dissectors/packet-nsip.c +++ b/epan/dissectors/packet-nsip.c @@ -507,6 +507,7 @@ decode_iei_reset_flag(nsip_ie_t *ie _U_, build_info_t *bi, int ie_start_offset) static const int * reset_flags[] = { &hf_nsip_reset_flag_bit, &hf_nsip_reset_flag_spare, + NULL }; flag = tvb_get_guint8(bi->tvb, bi->offset); @@ -565,6 +566,7 @@ decode_iei_end_flag(nsip_ie_t *ie _U_, build_info_t *bi, int ie_start_offset) { static const int * end_flags[] = { &hf_nsip_end_flag_bit, &hf_nsip_end_flag_spare, + NULL }; proto_tree_add_bitmask(bi->nsip_tree, bi->tvb, ie_start_offset, hf_nsip_end_flag, |