diff options
| author | luwenpeng <[email protected]> | 2020-07-24 15:03:32 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2020-07-24 15:03:32 +0800 |
| commit | c351e64f59563a49c31b1aa79f9bcc721f584762 (patch) | |
| tree | 18ad5f1af952fc8ec2c461b8d4a5cc8e97216d78 | |
| parent | 3748af73ee67f5e64aaf510619faf38f97d0ca34 (diff) | |
TSG-2588 DOH 兼容 session->req = NULL 的情况
| -rw-r--r-- | plugin/business/doh/src/doh.cpp | 2 |
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; } |
