]> granicus.if.org Git - apache/commitdiff
Fix up r892678 as pointed out by rpluem.
authorNick Kew <niq@apache.org>
Mon, 21 Dec 2009 13:11:14 +0000 (13:11 +0000)
committerNick Kew <niq@apache.org>
Mon, 21 Dec 2009 13:11:14 +0000 (13:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@892808 13f79535-47bb-0310-9956-ffa450edef68

server/protocol.c

index b5e4a1ce02b72cda5cf207ff34c58e14476db747..b04a4c0994f588963dd75b366e164a97c49a1c16 100644 (file)
@@ -434,7 +434,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;
     }