mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
esx: Fix incorrect memory compare size in esxStoragePoolLookupByUUID
Use MD5_DIGEST_SIZE or VIR_UUID_BUFLEN rather than VIR_UUID_STRING_BUFLEN when compare @uuid with @md5.
This commit is contained in:
parent
05b3846caf
commit
77cc51a482
@ -220,7 +220,7 @@ esxStoragePoolLookupByUUID(virConnectPtr conn,
|
||||
target; target = target->_next) {
|
||||
md5_buffer(target->iScsiName, strlen(target->iScsiName), md5);
|
||||
|
||||
if (memcmp(uuid, md5, VIR_UUID_STRING_BUFLEN) == 0)
|
||||
if (memcmp(uuid, md5, VIR_UUID_BUFLEN) == 0)
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user