diff options
author | Anders Broman <anders.broman@ericsson.com> | 2005-09-14 17:04:36 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2005-09-14 17:04:36 +0000 |
commit | 1f0fec3e7850db2b4a4c299167883188ee32afc5 (patch) | |
tree | fb1d32e0847d21dcdc875fe59f26484b0653b661 /epan/dissectors/packet-ber.c | |
parent | 6f8fbd169de5d69217e2397451036da325523a96 (diff) | |
download | wireshark-1f0fec3e7850db2b4a4c299167883188ee32afc5.tar.gz |
Dont't carsh if dissect_ber_null() isn't passed a hf_id.
svn path=/trunk/; revision=15797
Diffstat (limited to 'epan/dissectors/packet-ber.c')
-rw-r--r-- | epan/dissectors/packet-ber.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ber.c b/epan/dissectors/packet-ber.c index 24eae5411f..7b643ce804 100644 --- a/epan/dissectors/packet-ber.c +++ b/epan/dissectors/packet-ber.c @@ -705,8 +705,8 @@ if (!implicit_tag) offset += len; } } - -proto_tree_add_item(tree, hf_id, tvb, offset, 0, FALSE); + if (hf_id >= 0) + proto_tree_add_item(tree, hf_id, tvb, offset, 0, FALSE); return offset; } |