diff options
| author | erdgeist <> | 2009-01-16 04:17:22 +0000 |
|---|---|---|
| committer | erdgeist <> | 2009-01-16 04:17:22 +0000 |
| commit | 2d3718151d4f4248618f5c9f3ea5765f91f39eef (patch) | |
| tree | 324c711cc571ac05783ce90cc574d6ac107e1cbe /scan_urlencoded_query.c | |
| parent | 0b875273d4f17f36b478ab0a524531a97b88e08b (diff) | |
Fix a pointer arithmetic issue leading to incorrect peer data being copied. Allocate correct size for debugbuffer. Expect exact values on find keywords, not only prefix match.
Diffstat (limited to 'scan_urlencoded_query.c')
| -rw-r--r-- | scan_urlencoded_query.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scan_urlencoded_query.c b/scan_urlencoded_query.c index d8786a1..721dd44 100644 --- a/scan_urlencoded_query.c +++ b/scan_urlencoded_query.c | |||
| @@ -75,7 +75,7 @@ int scan_find_keywords( const ot_keywords * keywords, char **string, SCAN_SEARCH | |||
| 75 | if( match_length == 0 ) return -3; | 75 | if( match_length == 0 ) return -3; |
| 76 | 76 | ||
| 77 | while( keywords->key ) { | 77 | while( keywords->key ) { |
| 78 | if( !memcmp( keywords->key, deststring, match_length ) ) | 78 | if( !memcmp( keywords->key, deststring, match_length ) && !keywords->key[match_length] ) |
| 79 | return keywords->value; | 79 | return keywords->value; |
| 80 | keywords++; | 80 | keywords++; |
| 81 | } | 81 | } |
