GitHub user SolidWallOfCode opened a pull request:
https://github.com/apache/trafficserver/pull/1207
Remove unneeded malloc from url_rewrite debug path for HOST header.
The comments claim to copy to get the terminating null, but that's not
needed. I tested it and as expected it works fine without the allocation & copy.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/SolidWallOfCode/trafficserver
amc-debug-cleanup-url-rewrite-host-header
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/trafficserver/pull/1207.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1207
----
commit 9feff567ae4e6d700402895ceccb1aad1cd0474f
Author: Alan M. Carroll <[email protected]>
Date: 2016-11-07T21:27:12Z
Remove unneeded malloc from url_rewrite debug path for HOST header.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---