]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
As noted by rpluem, r->protocol isn't const char *. Ensure the exit cases
authorWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 7 Dec 2016 23:18:05 +0000 (23:18 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 7 Dec 2016 23:18:05 +0000 (23:18 +0000)
commit1919019671390c0c29ecf524d35bcc90b2342ddb
tree2d0faffc0c5371d406d0671d927681de73b74ddc
parenta265da6f65af37cbf8efec3685cc2e935795f759
As noted by rpluem, r->protocol isn't const char *. Ensure the exit cases
are pstrdup'ed. Note that r->protocol = "" is not in a return path.

Simplify the garbage-in protocol handling without consideration to 'strict'
settings. It is expected to be caused by an invalid raw SP in the URL.

Backports: r1773159 (with pstrdup enhancement)
Submitted by: rpluem, wrowe

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x-merge-http-strict@1773161 13f79535-47bb-0310-9956-ffa450edef68
server/protocol.c