From: Eric Covener Date: Fri, 31 Jan 2020 02:15:57 +0000 (+0000) Subject: PR63669: handle APR_BADARG return from ap_rgetline X-Git-Tag: 2.5.0-alpha2-ci-test-only~1687 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ddb50dbb5fc4d9682849396f6c02f9fc7508419;p=thirdparty%2Fapache%2Fhttpd.git PR63669: handle APR_BADARG return from ap_rgetline Submitted By: Giovanni Bechis git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1873394 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/protocol.c b/server/protocol.c index 4f1c6e4c67f..a0209715a24 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -726,6 +726,9 @@ static int read_request_line(request_rec *r, apr_bucket_brigade *bb) else if (APR_STATUS_IS_TIMEUP(rv)) { r->status = HTTP_REQUEST_TIME_OUT; } + else if (APR_STATUS_IS_BADARG(rv)) { + r->status = HTTP_BAD_REQUEST; + } else if (APR_STATUS_IS_EINVAL(rv)) { r->status = HTTP_BAD_REQUEST; }