summaryrefslogtreecommitdiff
path: root/plugin/business/doh
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2023-04-04 16:06:40 +0800
committerfengweihao <[email protected]>2023-04-04 16:06:40 +0800
commited9a4739a1736dcb3cd1758dd75c8ab071f0106d (patch)
treecae6b51f6ca83b1f478db1c20eb05378babf68ae /plugin/business/doh
parent26b533cba9865afdef4682ee99ed07932dce6947 (diff)
TSG-14379 Monitor策略日志多命中情况下Vsys ID填写错误v4.8.2-20230404
Diffstat (limited to 'plugin/business/doh')
-rw-r--r--plugin/business/doh/src/doh.cpp8
-rw-r--r--plugin/business/doh/src/pub.h1
2 files changed, 7 insertions, 2 deletions
diff --git a/plugin/business/doh/src/doh.cpp b/plugin/business/doh/src/doh.cpp
index d7e89b0..ac5b601 100644
--- a/plugin/business/doh/src/doh.cpp
+++ b/plugin/business/doh/src/doh.cpp
@@ -107,7 +107,6 @@ struct doh_action_param
char *message;
char *position;
float enforcement_ratio;
- int vsys_id;
int profile_id;
int status_code;
size_t n_rule;
@@ -486,6 +485,12 @@ static void doh_ctx_free(struct doh_ctx *ctx)
ctx->opts = NULL;
}
+ if(ctx->scan_mid)
+ {
+ maat_state_free(ctx->scan_mid);
+ ctx->scan_mid = NULL;
+ }
+
if (ctx->http_req_body)
{
evbuffer_free(ctx->http_req_body);
@@ -515,7 +520,6 @@ static void doh_ctx_free(struct doh_ctx *ctx)
free(ctx->location_server);
ctx->location_server = NULL;
}
-
FREE(&ctx);
}
diff --git a/plugin/business/doh/src/pub.h b/plugin/business/doh/src/pub.h
index 406b0f9..6606312 100644
--- a/plugin/business/doh/src/pub.h
+++ b/plugin/business/doh/src/pub.h
@@ -82,6 +82,7 @@ struct doh_maat_rule_t
unsigned char do_blacklist;
unsigned char action;
char *srv_def_large;
+ int vsys_id;
};
struct doh_ctx