summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/business/doh/src/pub.cpp2
-rw-r--r--plugin/business/tsg-http/src/tsg_logger.cpp8
-rw-r--r--plugin/protocol/http2/src/http2_stream.cpp2
3 files changed, 6 insertions, 6 deletions
diff --git a/plugin/business/doh/src/pub.cpp b/plugin/business/doh/src/pub.cpp
index 36c98c5..f932067 100644
--- a/plugin/business/doh/src/pub.cpp
+++ b/plugin/business/doh/src/pub.cpp
@@ -3,7 +3,7 @@
static const char base64[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
-static const char index_64[128] =
+static const signed char index_64[128] =
{
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
diff --git a/plugin/business/tsg-http/src/tsg_logger.cpp b/plugin/business/tsg-http/src/tsg_logger.cpp
index 5511200..6a79ffb 100644
--- a/plugin/business/tsg-http/src/tsg_logger.cpp
+++ b/plugin/business/tsg-http/src/tsg_logger.cpp
@@ -43,13 +43,13 @@ enum _log_action
#define get_time_ms(tv) ((long long)(tv.tv_sec) * 1000 + (long long)(tv.tv_usec) / 1000)
-#include "uuid_v4.h"
-UUIDv4::UUIDGenerator<std::mt19937_64> uuidGenerator;
+// #include "uuid_v4.h"
+// UUIDv4::UUIDGenerator<std::mt19937_64> uuidGenerator;
void get_http_body_uuid(char *uuid)
{
- UUIDv4::UUID uid = uuidGenerator.getUUID();
- uid.str(uuid);
+ // UUIDv4::UUID uid = uuidGenerator.getUUID();
+ // uid.str(uuid);
return;
}
diff --git a/plugin/protocol/http2/src/http2_stream.cpp b/plugin/protocol/http2/src/http2_stream.cpp
index a722eb8..636952a 100644
--- a/plugin/protocol/http2/src/http2_stream.cpp
+++ b/plugin/protocol/http2/src/http2_stream.cpp
@@ -2417,7 +2417,7 @@ static int http2_server_on_data_chunk_recv(nghttp2_session *session, uint8_t fla
if (req->h2_payload.encode_type != HTTP2_CONTENT_ENCODING_NONE){
ret = http2_decompress_stream(input, input_len, &uncompr, &uncompr_len,
&req->h2_payload.inflate, req->h2_payload.encode_type);
- if (((ret == Z_STREAM_END) || (ret == Z_OK)) && uncompr > 0){
+ if (((ret == Z_STREAM_END) || (ret == Z_OK)) && uncompr_len > 0){
input = (const uint8_t*)uncompr;
input_len = uncompr_len;
}