diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c index 430dccfeee80fc3d4c817395bd3d70f2f7f9430f..6aa55939f19c2225b78653bb8181498be1546923 100644 --- a/src/storage/storage_backend.c +++ b/src/storage/storage_backend.c @@ -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,