Changeset af1b25d in mainline


Ignore:
Timestamp:
2025-04-22T22:42:19Z (4 weeks ago)
Author:
Miroslav Cimerman <mc@…>
Children:
a261634
Parents:
dd76b46
Message:

hr: metadata/geom/g_mirror.h: fix checksums

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/hr/metadata/foreign/geom/g_mirror.h

    rdd76b46 raf1b25d  
    133133        errno_t rc = create_hash(data, 119, md5_hash, HASH_MD5);
    134134        assert(rc == EOK);
    135         bcopy(md->md_hash, data + 119, 16);
     135        bcopy(md5_hash, data + 119, 16);
    136136}
    137137
     
    161161        errno_t rc = create_hash(data, 119, md5_hash, HASH_MD5);
    162162        assert(rc == EOK);
    163         memcpy(md->md_hash, data + 119, 16);
    164         if (memcmp(md->md_hash, data + 119, 16) != 0)
     163        if (memcmp(md->md_hash, md5_hash, 16) != 0)
    165164                return (EINVAL);
    166165
Note: See TracChangeset for help on using the changeset viewer.