diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2011-12-28 17:02:43 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2011-12-28 17:02:43 +0000 |
commit | 043f5f71d0ca1f016f4aa9ebbf96ef2d9174b56b (patch) | |
tree | e6a7189a9ec8f26102f7c08a183f5cb359613cb1 /epan/dissectors/packet-3g-a11.c | |
parent | e7e36de7ddbcc829bb0d6a47ec1c0ab430b9b825 (diff) |
Fix Coverity CID 1342: UNUSED_VALUE
svn path=/trunk/; revision=40315
Diffstat (limited to 'epan/dissectors/packet-3g-a11.c')
-rw-r--r-- | epan/dissectors/packet-3g-a11.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-3g-a11.c b/epan/dissectors/packet-3g-a11.c index 594cc94b30..0b5377f81d 100644 --- a/epan/dissectors/packet-3g-a11.c +++ b/epan/dissectors/packet-3g-a11.c @@ -588,7 +588,7 @@ dissect_a11_radius( tvbuff_t *tvb, packet_info *pinfo, int offset, proto_tree *t proto_tree *radius_tree; /* None of this really matters if we don't have a tree */ - if (!tree) + if (!tree) return; /* return if length of extension is not valid */ @@ -681,7 +681,7 @@ static const gchar *dissect_3gpp2_radius_aut_flow_profile_ids(proto_tree * tree, static void dissect_ase(tvbuff_t* tvb, int offset, guint ase_len, proto_tree* ext_tree) { guint clen = 0; /* consumed length */ - + while(clen < ase_len) { proto_tree* exts_tree; @@ -701,7 +701,7 @@ static void dissect_ase(tvbuff_t* tvb, int offset, guint ase_len, proto_tree* ex } else if(service_option== 64){ ti = proto_tree_add_text(ext_tree, tvb, offset, entry_lenght+1, "GRE Key Entry (SRID: %d)", srid); } else { - ti = proto_tree_add_text(ext_tree, tvb, offset, entry_lenght+1, "Unknown service option %u (SRID: %d)", service_option, srid); + proto_tree_add_text(ext_tree, tvb, offset, entry_lenght+1, "Unknown service option %u (SRID: %d)", service_option, srid); clen+=entry_lenght+1; continue; } @@ -1135,7 +1135,7 @@ static void dissect_subscriber_qos_profile(tvbuff_t* tvb, packet_info *pinfo, in proto_tree_add_item (exts_tree, hf_a11_subsciber_profile, tvb, offset, qos_profile_len, ENC_NA); - + dissect_attribute_value_pairs(exts_tree, pinfo, tvb, offset, qos_profile_len); } } |