diff options
author | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-09-03 08:44:00 +0000 |
---|---|---|
committer | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-09-03 08:44:00 +0000 |
commit | 80546f81ccf78dc17a4363de5bf374a6ba6f4c7b (patch) | |
tree | 27286891811268bb48736d64c51a8c28f060fb6d /epan/dissectors/packet-ber.c | |
parent | a19dc16cff04f32899929c6d606979cacb63edf3 (diff) |
Check if using tree before adding the octet string.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34055 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-ber.c')
-rw-r--r-- | epan/dissectors/packet-ber.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ber.c b/epan/dissectors/packet-ber.c index 5dc035ab63..650807b2f3 100644 --- a/epan/dissectors/packet-ber.c +++ b/epan/dissectors/packet-ber.c @@ -1160,7 +1160,7 @@ reassemble_octet_string(asn1_ctx_t *actx, proto_tree *tree, gint hf_id, tvbuff_t /* anyway, we can get out of here */ gboolean pc; get_ber_identifier(tvb, start_offset, NULL, &pc, NULL); - if (!pc) { + if (!pc && tree) { /* Only display here if not constructed */ dissect_ber_octet_string(FALSE, actx, tree, tvb, start_offset, hf_id, NULL); } |