diff options
author | Gerald Combs <gerald@wireshark.org> | 2005-05-30 20:58:20 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2005-05-30 20:58:20 +0000 |
commit | 861dc4e340774832b383257016e84e2e00adc300 (patch) | |
tree | 2287dbb64ac64016908076c33fe8c782c94982d7 /epan/dissectors/packet-dcm.c | |
parent | 12b7466381656fa660f740ab4cfce817c0d74070 (diff) |
More bug fixes from Steve Grubb. See bug 217 for details.
svn path=/trunk/; revision=14496
Diffstat (limited to 'epan/dissectors/packet-dcm.c')
-rw-r--r-- | epan/dissectors/packet-dcm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/epan/dissectors/packet-dcm.c b/epan/dissectors/packet-dcm.c index 518e8a7a1e..20bf861bb0 100644 --- a/epan/dissectors/packet-dcm.c +++ b/epan/dissectors/packet-dcm.c @@ -632,7 +632,10 @@ dissect_dcm_assoc(dcmState_t *dcm_data, proto_item *ti, tvbuff_t *tvb, int offse guint8 id, *name, result; int reply = 0; - if (ti) dcm_tree = proto_item_add_subtree(ti, ett_assoc); + if (!ti) + return; + + dcm_tree = proto_item_add_subtree(ti, ett_assoc); while (-1 < offset && offset < (int) dcm_data->clen) { guint16 len; guint32 mlen; |