Skip to content

Commit

Permalink
parser: fix start of search for long header names
Browse files Browse the repository at this point in the history
- in parse_hname2_short(), used only for mod fixups, in the case header
  name given as function param was greater than 250 chars
  • Loading branch information
miconda committed Sep 8, 2015
1 parent be35e46 commit de8ba39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/parse_hname2.c
Expand Up @@ -270,7 +270,7 @@ char* parse_hname2_short(char* const begin, const char* const end, struct hdr_fi
char *p;

if(end-begin>=HBUF_MAX_SIZE-4) {
p = q_memchr(p, ':', end - begin);
p = q_memchr(begin, ':', end - begin);
if(p && p-4> begin) {
/* header name termination char found and enough space in buffer after it */
return parse_hname2(begin, end, hdr);
Expand Down

0 comments on commit de8ba39

Please sign in to comment.