From 230cba1b50fdae2bc5953e179c3d178cfa033397 Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Thu, 19 Mar 2020 14:59:19 -0400
Subject: [PATCH] Fix LLMD5 to properly zero out the buffer and not just the
 first element

---
 indra/llcommon/llmd5.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/llcommon/llmd5.cpp b/indra/llcommon/llmd5.cpp
index f942a976b7e..4acc76b3a56 100644
--- a/indra/llcommon/llmd5.cpp
+++ b/indra/llcommon/llmd5.cpp
@@ -219,7 +219,7 @@ void LLMD5::finalize (){
   encode (digest, state, 16);
 
   // Zeroize sensitive information
-  memset (buffer, 0, sizeof(*buffer));
+  memset (buffer, 0, sizeof(buffer));
 
   finalized=1;
 
-- 
GitLab