mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
storage: Fix error path
virStorageBackendCreateQemuImgCheckEncryption didn't return -1 if there were no secrets.
This commit is contained in:
parent
4f5debbeb4
commit
9301b46298
@ -1063,6 +1063,7 @@ virStorageBackendCreateQemuImgCheckEncryption(int format,
|
||||
if (enc->nsecrets == 0) {
|
||||
virReportError(VIR_ERR_XML_ERROR, "%s",
|
||||
_("no secret provided for luks encryption"));
|
||||
return -1;
|
||||
}
|
||||
} else {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
|
Loading…
x
Reference in New Issue
Block a user