diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2012-08-04 19:06:16 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2012-08-04 19:06:16 +0000 |
commit | 3a95aea15353044e9347f2e45fa67b1b6f4cd324 (patch) | |
tree | 58d035ab4b820d217c6a9a0590960ff1173ca52f /epan/dissectors/packet-umts_mac.c | |
parent | 6b733f55bca0aa399da5dbe380586ec578b8551f (diff) |
Fix Coverity CID 714130: Dereference after null check.
svn path=/trunk/; revision=44267
Diffstat (limited to 'epan/dissectors/packet-umts_mac.c')
-rw-r--r-- | epan/dissectors/packet-umts_mac.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/dissectors/packet-umts_mac.c b/epan/dissectors/packet-umts_mac.c index d80e75bc8a..cfb8cc4abd 100644 --- a/epan/dissectors/packet-umts_mac.c +++ b/epan/dissectors/packet-umts_mac.c @@ -235,8 +235,10 @@ static guint16 tree_add_common_dcch_dtch_fields(tvbuff_t *tvb, packet_info *pinf } proto_tree_add_bits_item(tree, hf_mac_ct, tvb, bitoffs, 4, ENC_BIG_ENDIAN); bitoffs += 4; - temp = proto_tree_add_uint(tree, hf_mac_lch_id, tvb, 0, 0, rlcinf->rbid[fpinf->cur_tb]); - PROTO_ITEM_SET_GENERATED(temp); + if(rlcinf){ + temp = proto_tree_add_uint(tree, hf_mac_lch_id, tvb, 0, 0, rlcinf->rbid[fpinf->cur_tb]); + PROTO_ITEM_SET_GENERATED(temp); + } } return bitoffs; } |