From 15c0bd9b9d55282e38a66670fb3d8fe20f823ea7 Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Mon, 27 Jun 2022 14:22:56 -0700 Subject: [PATCH] Fix signedness comparison warning in ssl analyzer --- src/analyzer/protocol/ssl/SSL.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/analyzer/protocol/ssl/SSL.cc b/src/analyzer/protocol/ssl/SSL.cc index c7312466c8..32e7d6071b 100644 --- a/src/analyzer/protocol/ssl/SSL.cc +++ b/src/analyzer/protocol/ssl/SSL.cc @@ -374,7 +374,7 @@ bool SSL_Analyzer::TryDecryptApplicationData(int len, const u_char* data, bool i EVP_DecryptUpdate(ctx, NULL, &decrypted_len, s_aead_tag.data(), s_aead_tag.size()); EVP_DecryptUpdate(ctx, decrypted.data(), &decrypted_len, (const u_char*)encrypted, encrypted_len); - assert(decrypted_len <= decrypted.size()); + assert(static_cast(decrypted_len) <= decrypted.size()); decrypted.resize(decrypted_len); int res = 0;