diff options
| author | Juraj Marcin <jmarcin@redhat.com> | 2025-05-21 15:52:30 +0200 |
|---|---|---|
| committer | Daniel P. Berrangé <berrange@redhat.com> | 2025-05-22 11:24:41 +0100 |
| commit | 0dc051aa85e1bd68d5c5110fa8af69204e6dbd3d (patch) | |
| tree | 999d056e17c34dab15ceab267c2de5ca54198697 /util/qemu-sockets.c | |
| parent | 1f59381d6c0126cf0348977caa73ab8f7cfa1269 (diff) | |
| download | focaccia-qemu-0dc051aa85e1bd68d5c5110fa8af69204e6dbd3d.tar.gz focaccia-qemu-0dc051aa85e1bd68d5c5110fa8af69204e6dbd3d.zip | |
io: Fix partial struct copy in qio_dns_resolver_lookup_sync_inet()
Commit aec21d3175 (qapi: Add InetSocketAddress member keep-alive) introduces the keep-alive flag, but this flag is not copied together with other options in qio_dns_resolver_lookup_sync_inet(). This patch fixes this issue and also prevents future ones by copying the entire structure first and only then overriding a few attributes that need to be different. Fixes: aec21d31756c (qapi: Add InetSocketAddress member keep-alive) Signed-off-by: Juraj Marcin <jmarcin@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'util/qemu-sockets.c')
0 files changed, 0 insertions, 0 deletions