diff options
Diffstat (limited to 'block-qcow.c')
-rw-r--r-- | block-qcow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block-qcow.c b/block-qcow.c index 208e35cca6..1f44355b2f 100644 --- a/block-qcow.c +++ b/block-qcow.c @@ -769,7 +769,7 @@ static int qcow_create(const char *filename, int64_t total_size, l1_size = ((total_size * 512) + (1LL << shift) - 1) >> shift; header.l1_table_offset = cpu_to_be64(header_size); - if (flags) { + if (flags & BLOCK_FLAG_ENCRYPT) { header.crypt_method = cpu_to_be32(QCOW_CRYPT_AES); } else { header.crypt_method = cpu_to_be32(QCOW_CRYPT_NONE); |