Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
reset buf_idx upon start (fix for init memset-buf)
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFrench committed Aug 2, 2019
1 parent bd376a3 commit c72faaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ htparser_run(htparser * p, htparse_hooks * hooks, const char * data, size_t len)
p->port_offset = NULL;
p->path_offset = NULL;
p->args_offset = NULL;

p->buf_idx = 0;

res = hook_on_msg_begin_run(p, hooks);

Expand Down

0 comments on commit c72faaf

Please sign in to comment.