Wireshark-dev: Re: [Wireshark-dev] [PATCH] Firebird/Interbase dissector, request for comments
From: "Môshe Van der Sterre" <moshevds@xxxxxxxxx>
Date: Mon, 16 Apr 2007 17:30:38 +0200
A small fix to prevent freezing on a loop. Sorry for this.
Anyway, as I said, it is not yet finished, but I like to get some
response to the code (to prevent myself from useless coding ;) ).

--- packet-gdsdb.c
+++ packet-gdsdb.c
@@ -723,7 +723,7 @@
               proto_tree_add_item(tree, hf_gdsdb_receive_messages, tvb,
                                                       offset, 4, FALSE);
               offset += 4;
-               while(tvb_bytes_exist(tvb, 0, 12)) {
+               while(tvb_bytes_exist(tvb, offset, 12)) {
                       proto_tree_add_item(tree, hf_gdsdb_receive_direction,
                                               tvb, offset, 4, FALSE);
                       offset += 4;

--
Mvg
Môshe van der Sterre
http://www.moshe.nl/
http://www.coecu.nl/