Changeset af1b25d in mainline
- Timestamp:
- 2025-04-22T22:42:19Z (4 weeks ago)
- Children:
- a261634
- Parents:
- dd76b46
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/hr/metadata/foreign/geom/g_mirror.h
rdd76b46 raf1b25d 133 133 errno_t rc = create_hash(data, 119, md5_hash, HASH_MD5); 134 134 assert(rc == EOK); 135 bcopy(md ->md_hash, data + 119, 16);135 bcopy(md5_hash, data + 119, 16); 136 136 } 137 137 … … 161 161 errno_t rc = create_hash(data, 119, md5_hash, HASH_MD5); 162 162 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) 165 164 return (EINVAL); 166 165
Note:
See TracChangeset
for help on using the changeset viewer.