diff options
author | Graeme Lunt <graeme.lunt@smhs.co.uk> | 2010-06-09 15:35:08 +0000 |
---|---|---|
committer | Graeme Lunt <graeme.lunt@smhs.co.uk> | 2010-06-09 15:35:08 +0000 |
commit | 7a29877cc2db9104f4864c6cf2fc736b4491e8e3 (patch) | |
tree | 6936875f9df036b5b19e5c70a408e38a0a2747c9 /asn1/idmp/packet-idmp-template.c | |
parent | aae93d19d49100ee8edae2cdfa46cb5dd0c550a1 (diff) | |
download | wireshark-7a29877cc2db9104f4864c6cf2fc736b4491e8e3.tar.gz wireshark-7a29877cc2db9104f4864c6cf2fc736b4491e8e3.tar.bz2 wireshark-7a29877cc2db9104f4864c6cf2fc736b4491e8e3.zip |
Removal of (hopefully!) the final warning.
svn path=/trunk/; revision=33187
Diffstat (limited to 'asn1/idmp/packet-idmp-template.c')
-rw-r--r-- | asn1/idmp/packet-idmp-template.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/asn1/idmp/packet-idmp-template.c b/asn1/idmp/packet-idmp-template.c index a9bf524a96..057f74ce24 100644 --- a/asn1/idmp/packet-idmp-template.c +++ b/asn1/idmp/packet-idmp-template.c @@ -143,7 +143,7 @@ register_idmp_protocol_info(const char *oid, const ros_info_t *rinfo, int proto } -static int dissect_idmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) +static void dissect_idmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) { int offset = 0; @@ -235,11 +235,8 @@ static int dissect_idmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tr offset = dissect_idmp_IDM_PDU(FALSE, tvb, offset, &asn1_ctx, tree, hf_idmp_PDU); pinfo->private_data = save_private_data; - } else { - offset = tvb_length(tvb); - } + } - return offset; } static guint get_idmp_pdu_len(packet_info *pinfo _U_, tvbuff_t *tvb, int offset) |