TSG-2588 DOH 兼容 session->req = NULL 的情况
This commit is contained in:
@@ -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;
|
struct doh_ctx *ctx = *(struct doh_ctx **)pme;
|
||||||
assert(ctx);
|
assert(ctx);
|
||||||
|
|
||||||
if (!req_session_is_doh(session, ctx))
|
if (!session->req || !req_session_is_doh(session, ctx))
|
||||||
{
|
{
|
||||||
return CALL_NEXT_PLUGIN;
|
return CALL_NEXT_PLUGIN;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user