误将基础协议结果覆盖为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;
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user