diff options
| author | luwenpeng <[email protected]> | 2024-04-11 17:22:08 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2024-04-11 18:36:10 +0800 |
| commit | e312995e64048b1511ff34418db2609a3a219137 (patch) | |
| tree | 2ace78e5ed3674188238e6d04d5b577b9bb3f441 | |
| parent | 32226c97345d3397b6c8ee11246ec0a07c4069b4 (diff) | |
bugfix: HTTP Parser中LOG Error时无效的指针访问v4.8.77-20240411
| -rw-r--r-- | plugin/protocol/http/src/http_half.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/protocol/http/src/http_half.cpp b/plugin/protocol/http/src/http_half.cpp index c58c83e..e364856 100644 --- a/plugin/protocol/http/src/http_half.cpp +++ b/plugin/protocol/http/src/http_half.cpp @@ -318,8 +318,8 @@ static int __parser_callback_on_headers_complete(http_parser * parser) char *__str_transfer_encoding = (char *)tfe_http_field_read(hf_public, &__transfer_encoding_field_name); if (!(__str_transfer_encoding && strncasecmp(__str_transfer_encoding, "chunked", strlen("chunked")) == 0)) { - const char * __str_stream = hf_private->session->hc_private->stream->str_stream_info; - TFE_LOG_ERROR(g_http_plugin->logger, "the content-length and transfer-encoding field not set, passthrough the whole tcp connection: %s. ", __str_stream); + //const char * __str_stream = hf_private->session->hc_private->stream->str_stream_info; + TFE_LOG_ERROR(g_http_plugin->logger, "the content-length and transfer-encoding field not set, passthrough the whole tcp connection."); hf_private->is_passthrough = true; return -1; } |
