TSG-2588 DOH 兼容 session->req = NULL 的情况

This commit is contained in:
luwenpeng
2020-07-24 15:03:32 +08:00
parent 3748af73ee
commit c351e64f59

View File

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