TSG-12614 动作参数赋值时机错误,导致tfe重启
This commit is contained in:
@@ -3162,11 +3162,12 @@ void proxy_on_http_end(const struct tfe_stream * stream,
|
|||||||
struct proxy_log log_msg = {.stream=stream, .http=session, .result=ctx->enforce_rules, .result_num=ctx->n_enforce,
|
struct proxy_log log_msg = {.stream=stream, .http=session, .result=ctx->enforce_rules, .result_num=ctx->n_enforce,
|
||||||
.req_body=ctx->log_req_body, .resp_body=ctx->log_resp_body, .action=0, .inject_sz=ctx->inject_sz,
|
.req_body=ctx->log_req_body, .resp_body=ctx->log_resp_body, .action=0, .inject_sz=ctx->inject_sz,
|
||||||
.asn_client=ctx->ip_ctx.asn_client, .asn_server=ctx->ip_ctx.asn_server, .location_client=ctx->ip_ctx.location_client,
|
.asn_client=ctx->ip_ctx.asn_client, .asn_server=ctx->ip_ctx.asn_server, .location_client=ctx->ip_ctx.location_client,
|
||||||
.location_server=ctx->ip_ctx.location_server, .vsys_id=ctx->param->vsys_id};
|
.location_server=ctx->ip_ctx.location_server};
|
||||||
|
|
||||||
if(ctx->action == PX_ACTION_MANIPULATE)
|
if(ctx->action == PX_ACTION_MANIPULATE)
|
||||||
{
|
{
|
||||||
log_msg.action = ctx->param->action;
|
log_msg.action = ctx->param->action;
|
||||||
|
log_msg.vsys_id = ctx->param->vsys_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ctx->action != PX_ACTION_NONE &&
|
if(ctx->action != PX_ACTION_NONE &&
|
||||||
|
|||||||
Reference in New Issue
Block a user