-- tweaked S5_TRACE output
-- fixed alert_fast to default to not print payload
-- fixed tcp options log format
+-- fixed bogus 120:3 alerts
125
-- discovered can't catch exceptions thrown from Lua to C++; need to
#include "hi_paf.h"
#include "main/thread.h"
+static THREAD_LOCAL bool headers = false;
static THREAD_LOCAL bool simple_response = false;
static THREAD_LOCAL uint8_t decompression_buffer[65535];
static THREAD_LOCAL uint8_t dechunk_buffer[65535];
{
if(!(sd->resp_state.last_pkt_chunked) && !simple_response)
{
- SnortEventqAdd(GID_HTTP_SERVER, HI_SERVER_NO_CONTLEN);
+ if ( headers )
+ SnortEventqAdd(GID_HTTP_SERVER, HI_SERVER_NO_CONTLEN);
}
else
sd->resp_state.last_pkt_chunked = 0;
if(!ServerConf)
return HI_INVALID_ARG;
-
Server = &(session->server);
+ headers = false;
+
clearHttpRespBuffer(Server);
seq_num = GET_PKT_SEQ(p);
}
else
{
+ headers = true;
simple_response = false;
p->packet_flags |= PKT_HTTP_DECODE;
/* This is a next expected packet to be decompressed but the packet is a
extern const BaseApi* sin_ftp_client;
extern const BaseApi* sin_ftp_server;
extern const BaseApi* sin_ftp_data;
-#ifndef REG_TEST
+//#ifndef REG_TEST
extern const BaseApi* sin_nhttp;
-#endif
+//#endif
extern const BaseApi* sin_rpc_decode;
extern const BaseApi* sin_telnet;
extern const BaseApi* sin_wizard;
sin_ftp_client,
sin_ftp_server,
sin_ftp_data,
-#ifndef REG_TEST
+//#ifndef REG_TEST
sin_nhttp,
-#endif
+//#endif
sin_rpc_decode,
sin_telnet,
sin_wizard,