From: Anoop Saldanha Date: Wed, 16 May 2012 13:12:26 +0000 (+0530) Subject: libhtp fix for response body processing. Increment data counter for response body... X-Git-Tag: suricata-1.3beta2~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f0272afebdf97ad8e6bde4e28cdb4ec3e0c1695;p=thirdparty%2Fsuricata.git libhtp fix for response body processing. Increment data counter for response body processing when no contentlength or chunked scheme is used but the server closes the connection --- diff --git a/libhtp/htp/htp_response.c b/libhtp/htp/htp_response.c index 8a69e9c2de..118b259438 100644 --- a/libhtp/htp/htp_response.c +++ b/libhtp/htp/htp_response.c @@ -238,6 +238,7 @@ int htp_connp_RES_BODY_IDENTITY(htp_connp_t *connp) { return HTP_OK; } } else { + d.len++; // We don't know the length of the response body, which means // that the body will consume all data until the connection // is closed.