diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 1999-08-21 17:59:36 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 1999-08-21 17:59:36 +0000 |
commit | e16bbb309da5605f5e0ba4210073256455e3787f (patch) | |
tree | 99bc0d00ef9a265686dace88c20ca0fe7ee6b3ae /packet-nbns.c | |
parent | 3ff349a8b74e9eb1080efb5a0945ae9476bd213d (diff) |
Move the code to set "max_data" in "dissect_nbss()" earlier, so that
it's set before we dissect continuations.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@538 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-nbns.c')
-rw-r--r-- | packet-nbns.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/packet-nbns.c b/packet-nbns.c index a91ae4db5a..94c8de069b 100644 --- a/packet-nbns.c +++ b/packet-nbns.c @@ -4,7 +4,7 @@ * Gilbert Ramirez <gram@verdict.uthscsa.edu> * Much stuff added by Guy Harris <guy@netapp.com> * - * $Id: packet-nbns.c,v 1.25 1999/08/21 08:45:09 sharpe Exp $ + * $Id: packet-nbns.c,v 1.26 1999/08/21 17:59:36 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -1277,6 +1277,12 @@ dissect_nbss(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) if (flags & NBSS_FLAGS_E) length += 65536; + /* + * XXX - we should set this based on both "pi.captured_len" + * and "length".... + */ + max_data = pi.captured_len - offset; + /* Hmmm, it may be a continuation message ... */ #define RJSHACK 1 @@ -1308,7 +1314,6 @@ dissect_nbss(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) val_to_str(msg_type, message_types, "Unknown (%x)")); } - max_data = pi.captured_len - offset; while (max_data > 0) { len = dissect_nbss_packet(pd, offset, fd, tree, max_data); offset += len; |