Skip to content

Commit a2805b1

Browse files
committed
hashlib: fix hash_obj_ops discarding hash value
1 parent 6225abe commit a2805b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/hashlib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ struct hash_obj_ops {
265265
template<typename T>
266266
static inline Hasher hash_into(const T *a, Hasher h) {
267267
if (a)
268-
a->hash_into(h);
268+
h = a->hash_into(h);
269269
else
270270
h.eat(0);
271271
return h;

0 commit comments

Comments
 (0)