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; }