From a2805b15c9d651852b6d969701943a14c014d9b9 Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Tue, 14 Jan 2025 12:36:24 +0100 Subject: [PATCH] hashlib: fix hash_obj_ops discarding hash value --- kernel/hashlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/hashlib.h b/kernel/hashlib.h index 188b176b4..ff33c3db3 100644 --- a/kernel/hashlib.h +++ b/kernel/hashlib.h @@ -265,7 +265,7 @@ struct hash_obj_ops { template static inline Hasher hash_into(const T *a, Hasher h) { if (a) - a->hash_into(h); + h = a->hash_into(h); else h.eat(0); return h;