summaryrefslogtreecommitdiff
path: root/packet-ipsec.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-05-30 05:26:05 +0000
committerGuy Harris <guy@alum.mit.edu>2002-05-30 05:26:05 +0000
commitca03167c44822e04c15878bdd3563df757cfed23 (patch)
treefdc3b8c438ea29a573800ff2527762d60df25231 /packet-ipsec.c
parent8ec09e1441fc74bb72b69449c4c6704ea0784da8 (diff)
downloadwireshark-ca03167c44822e04c15878bdd3563df757cfed23.tar.gz
Don't pass "tvb_reported_length_remaining(tvb, offset)" as the fourth
argument to "tvb_new_subset()" - just use -1 if the subset tvbuff is to run to the end of the parent tvbuff. svn path=/trunk/; revision=5599
Diffstat (limited to 'packet-ipsec.c')
-rw-r--r--packet-ipsec.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/packet-ipsec.c b/packet-ipsec.c
index 77ab02d973..1e1e6fcafb 100644
--- a/packet-ipsec.c
+++ b/packet-ipsec.c
@@ -1,7 +1,7 @@
/* packet-ipsec.c
* Routines for IPsec/IPComp packet disassembly
*
- * $Id: packet-ipsec.c,v 1.39 2002/05/10 23:20:38 guy Exp $
+ * $Id: packet-ipsec.c,v 1.40 2002/05/30 05:26:05 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -229,7 +229,9 @@ dissect_esp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree_add_uint(esp_tree, hf_esp_sequence, tvb,
offsetof(struct newesp, esp_seq), 4,
(guint32)ntohl(esp.esp_seq));
- call_dissector(data_handle,tvb_new_subset(tvb, sizeof(struct newesp),-1,tvb_reported_length_remaining(tvb,sizeof(struct newesp))), pinfo, esp_tree);
+ call_dissector(data_handle,
+ tvb_new_subset(tvb, sizeof(struct newesp), -1, -1),
+ pinfo, esp_tree);
}
}
@@ -279,7 +281,9 @@ dissect_ipcomp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree_add_uint(ipcomp_tree, hf_ipcomp_cpi, tvb,
offsetof(struct ipcomp, comp_cpi), 2,
ntohs(ipcomp.comp_cpi));
- call_dissector(data_handle,tvb_new_subset(tvb, sizeof(struct ipcomp), -1,tvb_reported_length_remaining(tvb,sizeof(struct ipcomp))),pinfo, ipcomp_tree);
+ call_dissector(data_handle,
+ tvb_new_subset(tvb, sizeof(struct ipcomp), -1, -1), pinfo,
+ ipcomp_tree);
}
}