aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbparse.c
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2010-12-31 18:03:23 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2010-12-31 18:03:23 +0000
commit2cd8459ddb9a42c8c93bd7db688a913a0ac038b2 (patch)
treed7b249da2a8034afc5e38387e425c634b6e694af /epan/tvbparse.c
parentc16cdbb8d978a64c38293813f5d4d3b2ad650596 (diff)
From Jakub Zawadzki via bug 4753: New dissector: JSON, w/minor changes by me:
1) Add links to RFC 4627 and the json.org web site. 2) Comment out hf_json_member_key to keep tools/checkhf.pl happy. 3) Avoid duplicate (application/json) from being displayed in Info column. svn path=/trunk/; revision=35317
Diffstat (limited to 'epan/tvbparse.c')
-rw-r--r--epan/tvbparse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/tvbparse.c b/epan/tvbparse.c
index 01d7936af4..8564b52da2 100644
--- a/epan/tvbparse.c
+++ b/epan/tvbparse.c
@@ -451,7 +451,7 @@ static int cond_one_of(tvbparse_t* tt, const int offset, const tvbparse_wanted_t
int curr_len;
if ( offset + w->len > tt->end_offset )
- return -1;
+ continue;
curr_len = w->condition(tt, offset, w, &new);
@@ -503,12 +503,12 @@ static int cond_hash(tvbparse_t* tt, const int offset, const tvbparse_wanted_t*
int value_len;
tvbparse_elem_t* value_elem = NULL;
int tot_len;
+ tvbparse_elem_t* ret_tok;
#ifdef TVBPARSE_DEBUG
if (TVBPARSE_DEBUG & TVBPARSE_DEBUG_HASH) g_warning("cond_hash: START");
#endif
- tvbparse_elem_t* ret_tok;
if ( offset > tt->end_offset )
return -1;
@@ -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) {