summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2024-04-03 14:46:41 +0800
committerliuxueli <[email protected]>2024-04-03 14:46:41 +0800
commit48018375d2283b11ea428f50fc77b68d465c1249 (patch)
tree58f4ca91b845538b9ee67ad3311b31e62dd869eb /test
parent00218891bdf3833d5f3cd741fa736fe52329b119 (diff)
OMPUB-1210: Enhance stabilityv3.1.1
Diffstat (limited to 'test')
-rw-r--r--test/ssl_test_plug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ssl_test_plug.cpp b/test/ssl_test_plug.cpp
index b7b09c7..0d3b071 100644
--- a/test/ssl_test_plug.cpp
+++ b/test/ssl_test_plug.cpp
@@ -100,7 +100,7 @@ extern "C" unsigned char SSL_TEST_PLUG_ENTRY(stSessionInfo *session_info, void *
cJSON_AddStringToObject(ctx, "ssl_client_version", ssl_get_version_name(a_ssl->chello->version));
}
- if(strlen(a_ssl->chello->ja3.md5) >0)
+ if(strlen(a_ssl->chello->ja3.md5) >0 && a_ssl->chello->ja3.md5_len > 0)
{
cJSON_AddStringToObject(ctx, "ssl_ja3_hash", a_ssl->chello->ja3.md5);
}