Track offset even when tree==NULL.
authorjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 24 Sep 2010 18:46:28 +0000 (18:46 +0000)
committerjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 24 Sep 2010 18:46:28 +0000 (18:46 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34239 f5534014-38df-0310-8fa8-9805f1628bb7

plugins/interlink/packet-interlink.c

index a77ea764d052956cb4fbf3bc76e95108f7edd62a..8b24a25146d0dc9da8ef15c96590ac791bf7092e 100644 (file)
@@ -107,6 +107,8 @@ dissect_interlink(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                offset += 2;
                proto_tree_add_item(ilh_tree, hf_interlink_seq, tvb, offset, 2, TRUE);
                offset += 2;
+       } else {
+               offset += 10;
        }
 
        if (ilh_tree) {
@@ -147,6 +149,8 @@ dissect_interlink(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                offset += 1;
                proto_tree_add_item(ilb_tree, hf_interlink_block_length, tvb, offset, 2, TRUE);
                offset += 2;
+       } else {
+               offset += 4;
        }
 
        /* Generate a new tvb for the rest. */