summaryrefslogtreecommitdiff
path: root/test/ssl_test_plug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/ssl_test_plug.cpp')
-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);
}