This repository has been archived by the owner on Jun 30, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bugfix #51] htp__callback_find_ length check fix
- previously htp__callback_find_()'s strncmp() for type_hash would use the path_len instead of the callbacks path length This is wrong: if you have a callback set for '/foo/', and you request '/', the evaluation was: strncmp("/foo/", "/", 1); Which will, of course, match "/foo/" since it's only looking for one byte. Instead, it should be: strncmp("/", "/foo/", 5) which would not take the true branch. - evhtp_callback_new now correctly sets the length (which is now used in htp__callback_find_
- Loading branch information