aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sigcomp.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2006-03-07 20:51:05 +0000
committerAnders Broman <anders.broman@ericsson.com>2006-03-07 20:51:05 +0000
commit317c8e5f92debb6c9a91541589017412352bed47 (patch)
tree29ceec8f1c021400e7c13ceb6184caaddd448dd1 /epan/dissectors/packet-sigcomp.c
parent06d73310c98971996ce06abedb2a4701aa6daafd (diff)
Fix Coverity CID: 8 dead code.
svn path=/trunk/; revision=17510
Diffstat (limited to 'epan/dissectors/packet-sigcomp.c')
-rw-r--r--epan/dissectors/packet-sigcomp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-sigcomp.c b/epan/dissectors/packet-sigcomp.c
index 9e383a11f3..5f06192b51 100644
--- a/epan/dissectors/packet-sigcomp.c
+++ b/epan/dissectors/packet-sigcomp.c
@@ -680,12 +680,12 @@ dissect_sigcomp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *sigcomp_tr
proto_tree_add_string(sigcomp_tree,hf_sigcomp_partial_state,
tvb, offset, partial_state_len, partial_state_str);
offset = offset + partial_state_len;
+ msg_len = tvb_reported_length_remaining(tvb, offset);
+
if(msg_len>0)
- proto_tree_add_text(sigcomp_tree, tvb, offset, -1, "Remaining SigComp message %u bytes",
- tvb_reported_length_remaining(tvb, offset));
+ proto_tree_add_text(sigcomp_tree, tvb, offset, -1, "Remaining SigComp message %u bytes", msg_len);
if ( decompress ) {
- msg_len = tvb_reported_length_remaining(tvb, offset);
msg_tvb = tvb_new_subset(tvb, offset, msg_len, msg_len);
/*
* buff = Where "state" will be stored