aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ber.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2004-02-26 12:02:45 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2004-02-26 12:02:45 +0000
commita89af7040cd87d27f5d13246d0f57a0a896ed8df (patch)
treee67d28668a6143b3fa2f1e713eca6993812c014a /packet-ber.c
parentcb8215fb66dda3397db803b64a788ca8435250db (diff)
Small change to the octet string dissector for BER.
make it create a new tvb and pass it to the callback so that the callback can pick up the length of the octet string by doing a tvb_length_remaining(tvb, 0); svn path=/trunk/; revision=10246
Diffstat (limited to 'packet-ber.c')
-rw-r--r--packet-ber.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/packet-ber.c b/packet-ber.c
index af78c27af4..fa0304a7e4 100644
--- a/packet-ber.c
+++ b/packet-ber.c
@@ -2,7 +2,7 @@
* Helpers for ASN.1/BER dissection
* Ronnie Sahlberg (C) 2004
*
- * $Id: packet-ber.c,v 1.1 2004/02/20 10:04:10 sahlberg Exp $
+ * $Id: packet-ber.c,v 1.2 2004/02/26 12:02:45 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -183,7 +183,9 @@ dissect_ber_octet_string(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, in
tree=proto_item_add_subtree(it, ett_ber_octet_string);
}
if(func){
- func(pinfo, tree, tvb, offset);
+ tvbuff_t *next_tvb;
+ next_tvb=tvb_new_subset(tvb, offset, len, len);
+ func(pinfo, tree, next_tvb, 0);
}
/*qqq*/