audit-util,varlink: use IOVEC_MAKE() in a couple more places

This commit is contained in:
Frantisek Sumsal
2023-06-15 20:58:24 +02:00
parent 9a27ef092e
commit 0347b9fdaa
2 changed files with 3 additions and 8 deletions
+1 -4
View File
@@ -686,10 +686,7 @@ static int varlink_read(Varlink *v) {
rs = MALLOC_SIZEOF_SAFE(v->input_buffer) - (v->input_buffer_index + v->input_buffer_size);
if (v->allow_fd_passing_input) {
iov = (struct iovec) {
.iov_base = p,
.iov_len = rs,
};
iov = IOVEC_MAKE(p, rs);
mh = (struct msghdr) {
.msg_iov = &iov,
.msg_iovlen = 1,