误将基础协议结果覆盖为unknown,导致common_schema_type填写错误

This commit is contained in:
liuxueli
2021-06-21 17:23:01 +08:00
parent 8d03091016
commit 3dae09781a

View File

@@ -1029,7 +1029,6 @@ static int identify_application_protocol(const struct streaminfo *a_stream, stru
{ {
int ret=0, length=0; int ret=0, length=0;
char buff[4096]={0}; char buff[4096]={0};
context->proto = PROTO_UNKONWN;
switch(a_stream->type) switch(a_stream->type)
{ {
@@ -1186,6 +1185,11 @@ static int identify_application_protocol(const struct streaminfo *a_stream, stru
break; break;
} }
if(context->proto<PROTO_HTTP || context->proto>PROTO_MAX)
{
context->proto = PROTO_UNKONWN;
}
return ret; return ret;
} }