From: Nick Kew Date: Mon, 21 Dec 2009 13:11:14 +0000 (+0000) Subject: Fix up r892678 as pointed out by rpluem. X-Git-Tag: 2.3.5~74 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc8eabe9ec20204a499cdc7c861611ce700514da;p=apache Fix up r892678 as pointed out by rpluem. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@892808 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/protocol.c b/server/protocol.c index b5e4a1ce02..b04a4c0994 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -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; }