From c351e64f59563a49c31b1aa79f9bcc721f584762 Mon Sep 17 00:00:00 2001 From: luwenpeng Date: Fri, 24 Jul 2020 15:03:32 +0800 Subject: [PATCH] =?UTF-8?q?TSG-2588=20DOH=20=E5=85=BC=E5=AE=B9=20session->?= =?UTF-8?q?req=20=3D=20NULL=20=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/business/doh/src/doh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/business/doh/src/doh.cpp b/plugin/business/doh/src/doh.cpp index 259be99..a572bc0 100644 --- a/plugin/business/doh/src/doh.cpp +++ b/plugin/business/doh/src/doh.cpp @@ -812,7 +812,7 @@ int doh_on_data(const struct tfe_stream *stream, const struct tfe_http_session * struct doh_ctx *ctx = *(struct doh_ctx **)pme; assert(ctx); - if (!req_session_is_doh(session, ctx)) + if (!session->req || !req_session_is_doh(session, ctx)) { return CALL_NEXT_PLUGIN; }