Wireshark-dev: [Wireshark-dev] [PATCH] Fix token start offset in cond_some
From: Jakub Zawadzki <darkjames@xxxxxxxxxxxxxxxx>
Date: Sun, 9 May 2010 23:22:56 +0200
Hi,

Another small patch for tvbparse.

Use offset instead of tt->offset.
diff --git epan/tvbparse.c epan/tvbparse.c
index 9c1d9f9..b6389bc 100644
--- epan/tvbparse.c
+++ epan/tvbparse.c
@@ -682,7 +682,7 @@ static int cond_some(tvbparse_t* tt, int offset, const tvbparse_wanted_t * wante
         return -1;
 
     if ( wanted->min == 0 ) {
-        ret_tok = new_tok(tt,wanted->id,tt->offset,0,wanted);
+        ret_tok = new_tok(tt,wanted->id,offset,0,wanted);
     }
 
     while (got_so_far < wanted->max) {