diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2016-12-22 18:40:56 +0000 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2016-12-22 18:40:56 +0000 |
commit | 6a9f8241a85bbcdade0d982ffb111542b270f399 (patch) | |
tree | 0f70ccd4e6cd9bfb9d4f4c54db63dea4424887c6 | |
parent | ad0a815634e1aa2baa6e59c93f6e15c7d7e85517 (diff) | |
download | httpd-6a9f8241a85bbcdade0d982ffb111542b270f399.tar.gz |
Backports: r892808
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
-rw-r--r-- | server/protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/protocol.c b/server/protocol.c index 84d60983a5..f168329568 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -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; } |