summaryrefslogtreecommitdiff
path: root/libcli/dns/dns.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2015-12-06 11:19:46 +0100
committerJeremy Allison <jra@samba.org>2015-12-08 23:01:27 +0100
commita0fcb7bd80f176319e1c6a3cfc447dd6ce88092f (patch)
tree9f7278b7cb033da00b18da0bb68255aaecbf5b34 /libcli/dns/dns.c
parent557169d1a0607d606284bdbaab6de930d661a058 (diff)
downloadsamba-a0fcb7bd80f176319e1c6a3cfc447dd6ce88092f.tar.gz
libdns: tsocket returns -1 and sets errno
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'libcli/dns/dns.c')
-rw-r--r--libcli/dns/dns.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcli/dns/dns.c b/libcli/dns/dns.c
index 43e1c4e0c79..90b7618bdca 100644
--- a/libcli/dns/dns.c
+++ b/libcli/dns/dns.c
@@ -67,20 +67,20 @@ struct tevent_req *dns_udp_request_send(TALLOC_CTX *mem_ctx,
ret = tsocket_address_inet_from_strings(state, "ip", NULL, 0,
&local_addr);
if (ret != 0) {
- tevent_req_werror(req, unix_to_werror(ret));
+ tevent_req_werror(req, unix_to_werror(errno));
return tevent_req_post(req, ev);
}
ret = tsocket_address_inet_from_strings(state, "ip", server_addr_string,
DNS_SERVICE_PORT, &server_addr);
if (ret != 0) {
- tevent_req_werror(req, unix_to_werror(ret));
+ tevent_req_werror(req, unix_to_werror(errno));
return tevent_req_post(req, ev);
}
ret = tdgram_inet_udp_socket(local_addr, server_addr, state, &dgram);
if (ret != 0) {
- tevent_req_werror(req, unix_to_werror(ret));
+ tevent_req_werror(req, unix_to_werror(errno));
return tevent_req_post(req, ev);
}