hashlib: fix hash_obj_ops discarding hash value

This commit is contained in:
Emil J. Tywoniak 2025-01-14 12:36:24 +01:00
parent 6225abec71
commit a2805b15c9
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ struct hash_obj_ops {
template<typename T> template<typename T>
static inline Hasher hash_into(const T *a, Hasher h) { static inline Hasher hash_into(const T *a, Hasher h) {
if (a) if (a)
a->hash_into(h); h = a->hash_into(h);
else else
h.eat(0); h.eat(0);
return h; return h;