Skip to content

Commit

Permalink
tm: lw parser - fix matching To header in lw_get_hf_name()
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed May 5, 2021
1 parent 7916723 commit 4ab6e05
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/modules/tm/lw_parser.c
Expand Up @@ -188,9 +188,11 @@ char *lw_get_hf_name(char *begin, char *end, enum _hdr_types_t *type)

case 't': /* To */
if(LOWER_BYTE(*(p + 1)) == 'o') {
p += 2;
*type = HDR_TO_T;
break;
if((*(p + 2) == ' ') || (*(p + 2) == ':')) {
p += 2;
*type = HDR_TO_T;
break;
}
}
if((*(p + 1) == ' ') || (*(p + 1) == ':')) {
p++;
Expand Down

0 comments on commit 4ab6e05

Please sign in to comment.