]> 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 22:54:36 +0000 (22:54 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 7 Dec 2016 22:54:36 +0000 (22:54 +0000)
commit264da5160214639ff879755b9e2658dad02625d7
tree15c17849fd12fc7b86b914165e481185770a984c
parentd049e3ce42b89ba66c17b0cd8c4c5992ec2b12fe
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

Reverted in r1773160 (for further STATUS review)

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