aboutsummaryrefslogtreecommitdiff
path: root/rust/qemu-api/src
diff options
context:
space:
mode:
authorHaoqian He <haoqian.he@smartx.com>2025-02-25 18:45:26 +0800
committerMarc-André Lureau <marcandre.lureau@redhat.com>2025-03-05 09:38:09 +0400
commit46f83c898a6658921fed57f98af6d505ab78a6e4 (patch)
tree44f385ae2cb9b000a3c0ce1d8fcacd9825fa23fc /rust/qemu-api/src
parenta97ef3624437c5a5fbc8bd45e2a206d10ca840be (diff)
downloadqemu-46f83c898a6658921fed57f98af6d505ab78a6e4.zip
qemu-46f83c898a6658921fed57f98af6d505ab78a6e4.tar.gz
qemu-46f83c898a6658921fed57f98af6d505ab78a6e4.tar.bz2
chardev: use remoteAddr if the chardev is client
If the chardev is client, the socket file path in localAddr may be NULL. This is because the socket path comes from getsockname(), according to man page, getsockname() returns the current address bound by the socket sockfd. If the chardev is client, it's socket is unbound sockfd. Therefore, when computing the client chardev socket file path, using remoteAddr is more appropriate. Signed-off-by: Haoqian He <haoqian.he@smartx.com> Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-ID: <20250225104526.2924175-1-haoqian.he@smartx.com>
Diffstat (limited to 'rust/qemu-api/src')
0 files changed, 0 insertions, 0 deletions