summaryrefslogtreecommitdiffstats
path: root/server/protocol.c
diff options
context:
space:
mode:
authorEric Covener <covener@apache.org>2020-01-31 03:15:57 +0100
committerEric Covener <covener@apache.org>2020-01-31 03:15:57 +0100
commit3ddb50dbb5fc4d9682849396f6c02f9fc7508419 (patch)
tree9c4d3e987b97ba756f6fabb4088941d7a6b6b48e /server/protocol.c
parentUpdate generated docs. (diff)
downloadapache2-3ddb50dbb5fc4d9682849396f6c02f9fc7508419.tar.xz
apache2-3ddb50dbb5fc4d9682849396f6c02f9fc7508419.zip
PR63669: handle APR_BADARG return from ap_rgetline
Submitted By: Giovanni Bechis <giovanni paclan.it> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1873394 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/protocol.c')
-rw-r--r--server/protocol.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/protocol.c b/server/protocol.c
index 4f1c6e4c67..a0209715a2 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;
}