误将基础协议结果覆盖为unknown,导致common_schema_type填写错误
This commit is contained in:
@@ -1029,7 +1029,6 @@ static int identify_application_protocol(const struct streaminfo *a_stream, stru
|
||||
{
|
||||
int ret=0, length=0;
|
||||
char buff[4096]={0};
|
||||
context->proto = PROTO_UNKONWN;
|
||||
|
||||
switch(a_stream->type)
|
||||
{
|
||||
@@ -1185,6 +1184,11 @@ static int identify_application_protocol(const struct streaminfo *a_stream, stru
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if(context->proto<PROTO_HTTP || context->proto>PROTO_MAX)
|
||||
{
|
||||
context->proto = PROTO_UNKONWN;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user