abort on http_parser_validate error

Wed, 30 Aug 2017 21:57:37 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Wed, 30 Aug 2017 21:57:37 +0200
changeset 181
12828065f120
parent 180
98462e878ca7
child 182
b982cc285c40

abort on http_parser_validate error

src/server/daemon/sessionhandler.c file | annotate | diff | comparison | revisions
--- a/src/server/daemon/sessionhandler.c	Wed Aug 30 21:53:08 2017 +0200
+++ b/src/server/daemon/sessionhandler.c	Wed Aug 30 21:57:37 2017 +0200
@@ -323,8 +323,8 @@
     if(!http_parser_validate(parser)) {
         log_ereport(LOG_FAILURE, "http_parser_validate failed");
         // TODO: send error 400 bad request
-        //event->finish = evt_request_error;
-        //return 0;
+        event->finish = evt_request_error;
+        return 0;
     }
     
     /*

mercurial