TSG-9525:添加tamper动作拷贝日志结果函数接口

This commit is contained in:
yangwenlin
2022-01-29 11:01:54 +08:00
parent 1f2176c209
commit 7cf9e45d62
2 changed files with 43 additions and 3 deletions

View File

@@ -591,7 +591,7 @@ static unsigned char do_action_tamper(const struct streaminfo *a_stream, Maat_ru
}else{
if(_context->method_type != TSG_METHOD_TYPE_TAMPER)
{
_context->method_type=TSG_METHOD_TYPE_TAMPER;
_context->method_type = TSG_METHOD_TYPE_TAMPER;
_context->tamper_count = -1;
}
else
@@ -607,7 +607,7 @@ static unsigned char do_action_tamper(const struct streaminfo *a_stream, Maat_ru
if(a_stream->type != STREAM_TYPE_TCP){
if(0 == send_tamper_xxx(a_stream, &_context->tamper_count, user_data)){
return STATE_DROPPKT;
return STATE_GIVEME|STATE_DROPPKT;
}
}
return STATE_GIVEME;