]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Backports: r892808
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 22 Dec 2016 18:40:56 +0000 (18:40 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 22 Dec 2016 18:40:56 +0000 (18:40 +0000)
Submitted by: rpluem
Fix up r892678

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x-merge-http-strict@1775692 13f79535-47bb-0310-9956-ffa450edef68

server/protocol.c

index 84d60983a5f525ba9e7e62f6a77a08d64da324b0..f168329568299b56afb252e4d3a45433f226f9f3 100644 (file)
@@ -436,7 +436,7 @@ AP_DECLARE(apr_status_t) ap_rgetline_core(char **s, apr_size_t n,
     *read = bytes_handled;
 
     /* PR#43039: We shouldn't accept NULL bytes within the line */
-    if (strlen(*s) < bytes_handled - 1) {
+    if (strlen(*s) < bytes_handled) {
         return APR_EINVAL;
     }