summaryrefslogtreecommitdiff
path: root/src/HTTP_Analyze.c
diff options
context:
space:
mode:
authorlishu <[email protected]>2020-06-17 12:09:30 +0800
committerlishu <[email protected]>2020-06-17 12:09:30 +0800
commit003706e4f1ca4aa974c980b7c648310c3bc595f8 (patch)
treef045d4ecd60d5ebe43a53c558c7def999995211f /src/HTTP_Analyze.c
parente8f12eeef500b246ce3fade3cb886e3cd7cbc2b9 (diff)
set pbuf=null when reset http stream
Diffstat (limited to 'src/HTTP_Analyze.c')
-rw-r--r--src/HTTP_Analyze.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/HTTP_Analyze.c b/src/HTTP_Analyze.c
index 5c04962..4ac7c20 100644
--- a/src/HTTP_Analyze.c
+++ b/src/HTTP_Analyze.c
@@ -25,7 +25,7 @@
http_prog_runtime_parameter_t g_http_prog_para;
int G_HTTP_H_VERSION_4_20191205 = 0;
-int G_HTTP_VERSION_4_20200108 = 0;
+int G_HTTP_VERSION_4_20200612 = 0;
void history()
{
//2014-12-09 V3.0 new documentAnalyze lib ; http.h add and delete ;
@@ -104,6 +104,7 @@ void history()
//2019-11-12 V4.0 //����http_host_parser����
//2019-12-05 V4.0 //����http_line2value����
//2020-01-08 V4.0 //add mesa_proto
+ //2020-06-12 V4.0 //set pbuf=null when resethttpstream
}
@@ -727,6 +728,9 @@ void http_resetHttpStream(http_stream **ppa_http_stream, struct streaminfo *a_tc
a_http_stream->uncomplete_count = 0;
a_http_stream->first_link_node = NULL;
a_http_stream->last_link_node = NULL;
+ // 20200612 guangdong clear buf
+ a_http_stream->pbuf = NULL;
+ a_http_stream->buflen = 0;
#if HTTP_PROXY
if(g_http_prog_para.proxy_switch)
{