summaryrefslogtreecommitdiffstats
path: root/src/shared/dissect-image.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-09-06 08:00:32 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-09-06 08:00:32 +0200
commit204529d0fcde9a95119b489225620f36649c2f5b (patch)
treeb23dcaaa757c559946a5edc780b60f1bd2e8c3e5 /src/shared/dissect-image.c
parentask-password: refuse empty password strv (diff)
downloadsystemd-204529d0fcde9a95119b489225620f36649c2f5b.tar.xz
systemd-204529d0fcde9a95119b489225620f36649c2f5b.zip
tree-wide: check if non-empty password is acquired
Diffstat (limited to 'src/shared/dissect-image.c')
-rw-r--r--src/shared/dissect-image.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c
index b84924ad8d..a538425c1f 100644
--- a/src/shared/dissect-image.c
+++ b/src/shared/dissect-image.c
@@ -3079,6 +3079,7 @@ int dissected_image_decrypt_interactively(
if (r < 0)
return log_error_errno(r, "Failed to query for passphrase: %m");
+ assert(!strv_isempty(z));
passphrase = z[0];
}
}