tree-wide: use IOVEC_MAKE() in a couple more places

This commit is contained in:
Frantisek Sumsal
2023-12-25 18:26:59 +01:00
parent dd1b1dae7e
commit c490b6ddc2
2 changed files with 2 additions and 6 deletions
+1 -4
View File
@@ -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);