From: Yann Ylavic Date: Tue, 20 Mar 2018 21:40:11 +0000 (+0000) Subject: core: ap_getline_core() reads nothing for n == 0. X-Git-Tag: 2.5.0-alpha2-ci-test-only~2770 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0347a90cff256c083db5aac769a3c8a6ed4fd4e;p=thirdparty%2Fapache%2Fhttpd.git core: ap_getline_core() reads nothing for n == 0. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1827362 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/protocol.c b/server/protocol.c index 31101bd6edf..460bf00dd98 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -227,6 +227,7 @@ AP_DECLARE(apr_status_t) ap_rgetline_core(char **s, apr_size_t n, if (!n) { /* Needs room for NUL byte at least */ + *read = 0; return APR_BADARG; }