]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virSocketSendMsgWithFDs: Introduce @payload_len argument
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 2 Feb 2024 12:05:08 +0000 (13:05 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 7 Feb 2024 10:01:30 +0000 (11:01 +0100)
commit495a826dbf9b511cfc50e747eb5a748478cde855
tree080dd7f4943e515853ed12b114e965c6c769d0f8
parente82f99283dd5d6553d482aef2464366342d1b6e6
virSocketSendMsgWithFDs: Introduce @payload_len argument

Instead of using strlen() to calculate length of payload we're
sending, let caller specify the size: they may want to send just
a portion of a buffer (even though the only current user
doesn't).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/ch/ch_process.c
src/util/virsocket.c
src/util/virsocket.h