diff options
author | Daniel P. Berrange | 2017-04-03 17:49:23 +0200 |
---|---|---|
committer | Daniel P. Berrange | 2017-04-04 17:17:03 +0200 |
commit | b8a68728b6a3fad86f15aa5efdc31ea0b3cb8a62 (patch) | |
tree | 67715e0711b5019dae8169317e7af0061ef0c0cd | |
parent | io: fix incoming client socket initialization (diff) | |
download | qemu-b8a68728b6a3fad86f15aa5efdc31ea0b3cb8a62.tar.gz qemu-b8a68728b6a3fad86f15aa5efdc31ea0b3cb8a62.tar.xz qemu-b8a68728b6a3fad86f15aa5efdc31ea0b3cb8a62.zip |
io: fix FD socket handling in DNS lookup
The qio_dns_resolver_lookup_sync() method is required to be a no-op
for socket kinds that don't require name resolution. Thus the KIND_FD
handling should not return an error.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
-rw-r--r-- | io/dns-resolver.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/io/dns-resolver.c b/io/dns-resolver.c index a407075934..759d1b40d7 100644 --- a/io/dns-resolver.c +++ b/io/dns-resolver.c @@ -158,16 +158,13 @@ int qio_dns_resolver_lookup_sync(QIODNSResolver *resolver, case SOCKET_ADDRESS_KIND_UNIX: case SOCKET_ADDRESS_KIND_VSOCK: + case SOCKET_ADDRESS_KIND_FD: return qio_dns_resolver_lookup_sync_nop(resolver, addr, naddrs, addrs, errp); - case SOCKET_ADDRESS_KIND_FD: - error_setg(errp, "Unsupported socket address type 'fd'"); - return -1; - default: abort(); } |