isaacpittman-hitachi / rpms / openssl

Forked from rpms/openssl 2 years ago
Clone

Blame SOURCES/0063-CVE-2022-1473.patch

22d461
diff --git a/crypto/lhash/lhash.c b/crypto/lhash/lhash.c
22d461
index 2a574fbfe6aa..16f482db68a9 100644
22d461
--- a/crypto/lhash/lhash.c
22d461
+++ b/crypto/lhash/lhash.c
22d461
@@ -100,6 +100,8 @@ void OPENSSL_LH_flush(OPENSSL_LHASH *lh)
22d461
         }
22d461
         lh->b[i] = NULL;
22d461
     }
22d461
+
22d461
+    lh->num_items = 0;
22d461
 }
22d461
 
22d461
 void *OPENSSL_LH_insert(OPENSSL_LHASH *lh, void *data)