This repository has been archived by the owner on Jun 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfixes and cleanup for htp__connection_writecb_
- Fix issue with non-SNI vhost sets * A few releases back, we replaced typed settings to a flag bitmask There was some logic previously that did the following: if (c->htp->parent && c->vhost_via_sni == 0) Where c->vhost_via_sni is NOW `EVHTP_CONN_FLAG_VHOST_VIA_SNI` in the flags mask. Unfortunately, the logic above broke when it was converted to a flag, and it causes the conditional to ONLY branch true if the virtual host was set by SSL SNI instead of the reverse. Simply put, the fix is: `!(conn->flags & EVHTP_CONN_FLAG_VHOST_VIA_SNI)` (note the '!'). - Lot's of cleanup on readability and logic for htp__connection_writecb_ - Added some more detailed commentary for obscure conditionals. - Use `evhtp_safe_free` for any free's in htp__connection_writecb_ NOTE: M<3D
- Loading branch information
1 parent
77a0752
commit 440e5b9
Showing
1 changed file
with
108 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters