diff options
| author | fengweihao <[email protected]> | 2022-11-14 12:30:33 +0800 |
|---|---|---|
| committer | fengweihao <[email protected]> | 2022-11-14 12:30:33 +0800 |
| commit | 6b904fdf58d5d660b887c812c52b3ccacef49af5 (patch) | |
| tree | 9e039cbb72b68eb461ee605d548975873d0c06de | |
| parent | 6a6fa970806f7cdb3a8a842f7b284dc8fdbee7c5 (diff) | |
TSG-12614 动作参数赋值时机错误,导致tfe重启v4.6.22-20221114
| -rw-r--r-- | plugin/business/tsg-http/src/tsg_http.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/business/tsg-http/src/tsg_http.cpp b/plugin/business/tsg-http/src/tsg_http.cpp index 7856462..370ad16 100644 --- a/plugin/business/tsg-http/src/tsg_http.cpp +++ b/plugin/business/tsg-http/src/tsg_http.cpp @@ -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, .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, - .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) { log_msg.action = ctx->param->action; + log_msg.vsys_id = ctx->param->vsys_id; } if(ctx->action != PX_ACTION_NONE && |
