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/
_______________________________________________
Wireshark-dev mailing list
[email protected]
http://www.wireshark.org/mailman/listinfo/wireshark-dev

Reply via email to