summaryrefslogtreecommitdiffstats
path: root/src/shared/tpm2-util.c
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2023-12-25 12:54:35 +0100
committerFrantisek Sumsal <frantisek@sumsal.cz>2023-12-25 18:26:59 +0100
commitc490b6ddc24205ff9d50d9e9da361d9b1866dbfc (patch)
tree169c0271960d302d7b8d4d7a6ed1eadd52776722 /src/shared/tpm2-util.c
parenttest: use FLAGS_SET() in one more place (diff)
downloadsystemd-c490b6ddc24205ff9d50d9e9da361d9b1866dbfc.tar.xz
systemd-c490b6ddc24205ff9d50d9e9da361d9b1866dbfc.zip
tree-wide: use IOVEC_MAKE() in a couple more places
Diffstat (limited to 'src/shared/tpm2-util.c')
-rw-r--r--src/shared/tpm2-util.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/shared/tpm2-util.c b/src/shared/tpm2-util.c
index f0fa870437..ffcddc13d4 100644
--- a/src/shared/tpm2-util.c
+++ b/src/shared/tpm2-util.c
@@ -5891,10 +5891,7 @@ int tpm2_unseal_data(
"Failed to unseal data: %s", sym_Tss2_RC_Decode(rc));
_cleanup_(iovec_done) struct iovec d = {};
- d = (struct iovec) {
- .iov_base = memdup(unsealed->buffer, unsealed->size),
- .iov_len = unsealed->size,
- };
+ d = IOVEC_MAKE(memdup(unsealed->buffer, unsealed->size), unsealed->size);
explicit_bzero_safe(unsealed->buffer, unsealed->size);