]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
htp: close request only from request side
authorVictor Julien <victor@inliniac.net>
Wed, 11 Dec 2019 19:57:57 +0000 (20:57 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 13 Dec 2019 09:25:21 +0000 (10:25 +0100)
This allows the response side to keep going for just
a bit longer.

src/app-layer-htp.c

index e8b05e19390d5b4d31ef477390b16ea28410e102..67da98189ff1e148637744bc012e122b06ed3fe5 100644 (file)
@@ -877,7 +877,7 @@ static int HTPHandleRequestData(Flow *f, void *htp_state,
     if (AppLayerParserStateIssetFlag(pstate, APP_LAYER_PARSER_EOF) &&
         !(hstate->flags & HTP_FLAG_STATE_CLOSED_TS))
     {
-        htp_connp_close(hstate->connp, &ts);
+        htp_connp_req_close(hstate->connp, &ts);
         hstate->flags |= HTP_FLAG_STATE_CLOSED_TS;
         SCLogDebug("stream eof encountered, closing htp handle for ts");
     }