修改 doh Maat_clean_status 的执行时机;修改 ssl service debug 日志

This commit is contained in:
luwenpeng
2020-07-06 11:19:02 +08:00
parent c623a1c305
commit c74d891573
2 changed files with 14 additions and 9 deletions

View File

@@ -371,9 +371,6 @@ static void doh_ctx_free(struct doh_ctx *ctx)
ctx->doh_req = NULL;
}
Maat_clean_status(&(ctx->scan_mid));
ctx->scan_mid = NULL;
if (ctx->opts_num)
{
free(ctx->opts);
@@ -479,6 +476,8 @@ static void doh_process_req(const struct tfe_stream *stream, const struct tfe_ht
}
doh_maat_scan(stream, session, ctx, (char *)ctx->doh_req->query_question.qname, ctx->doh_req->query_question.qtype);
Maat_clean_status(&(ctx->scan_mid));
ctx->scan_mid = NULL;
if (!ctx->opts_num)
{
TFE_LOG_INFO(g_doh_conf->local_logger, "%s Doh no hit answer type, PASSTHROUGH", ctx->addr_string);