summaryrefslogtreecommitdiff
path: root/plugin/business/doh/src/doh.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/business/doh/src/doh.cpp')
-rw-r--r--plugin/business/doh/src/doh.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}