On Tue, Apr 08, 2025 at 01:25:00PM +0200, Juraj Marcin wrote: > From: Juraj Marcin <jmar...@redhat.com> > > 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 <jmar...@redhat.com> > --- > io/dns-resolver.c | 21 +++++---------------- > 1 file changed, 5 insertions(+), 16 deletions(-)
Reviewed-by: Daniel P. Berrangé <berra...@redhat.com> With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|