You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by yl...@apache.org on 2018/03/20 21:40:12 UTC
svn commit: r1827362 - /httpd/httpd/trunk/server/protocol.c
Author: ylavic
Date: Tue Mar 20 21:40:11 2018
New Revision: 1827362
URL: http://svn.apache.org/viewvc?rev=1827362&view=rev
Log:
core: ap_getline_core() reads nothing for n == 0.
Modified:
httpd/httpd/trunk/server/protocol.c
Modified: httpd/httpd/trunk/server/protocol.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/protocol.c?rev=1827362&r1=1827361&r2=1827362&view=diff
==============================================================================
--- httpd/httpd/trunk/server/protocol.c (original)
+++ httpd/httpd/trunk/server/protocol.c Tue Mar 20 21:40:11 2018
@@ -227,6 +227,7 @@ AP_DECLARE(apr_status_t) ap_rgetline_cor
if (!n) {
/* Needs room for NUL byte at least */
+ *read = 0;
return APR_BADARG;
}