diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-04-23 04:29:54 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-04-23 04:29:54 +0000 |
commit | 32c0848007033daaedcbb628da2230eadd155051 (patch) | |
tree | 7bb7a3fde4970145f23ca2ac97d3e646315bd007 /packet-smtp.c | |
parent | caeb3dd2de08c9ae66b340745cb53b3c2a77a749 (diff) | |
download | wireshark-32c0848007033daaedcbb628da2230eadd155051.tar.gz wireshark-32c0848007033daaedcbb628da2230eadd155051.tar.bz2 wireshark-32c0848007033daaedcbb628da2230eadd155051.zip |
Get rid of END_OF_FRAME references in tvbuffified dissectors.
svn path=/trunk/; revision=3364
Diffstat (limited to 'packet-smtp.c')
-rw-r--r-- | packet-smtp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packet-smtp.c b/packet-smtp.c index 781ee12dfa..9ec1fdbb24 100644 --- a/packet-smtp.c +++ b/packet-smtp.c @@ -1,7 +1,7 @@ /* packet-smtp.c * Routines for SMTP packet disassembly * - * $Id: packet-smtp.c,v 1.16 2001/03/13 21:34:23 gram Exp $ + * $Id: packet-smtp.c,v 1.17 2001/04/23 04:29:53 guy Exp $ * * Copyright (c) 2000 by Richard Sharpe <rsharpe@ns.aus.com> * @@ -408,7 +408,8 @@ dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if (tree) { /* Build the tree info ... */ - ti = proto_tree_add_item(tree, proto_smtp, tvb, offset, END_OF_FRAME, FALSE); + ti = proto_tree_add_item(tree, proto_smtp, tvb, offset, + tvb_length_remaining(tvb, offset), FALSE); smtp_tree = proto_item_add_subtree(ti, ett_smtp); proto_tree_add_boolean_hidden(smtp_tree, (request ? hf_smtp_req : hf_smtp_rsp), tvb, offset, 4, TRUE); |