summaryrefslogtreecommitdiff
path: root/lib/addns
diff options
context:
space:
mode:
Diffstat (limited to 'lib/addns')
-rw-r--r--lib/addns/dnssock.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/addns/dnssock.c b/lib/addns/dnssock.c
index ec42b7ca689..30b8fa2eaf4 100644
--- a/lib/addns/dnssock.c
+++ b/lib/addns/dnssock.c
@@ -221,9 +221,7 @@ static DNS_ERROR dns_send_udp(struct dns_connection *conn,
ssize_t ret;
do {
- ret = sendto(conn->s, buf->data, buf->offset, 0,
- (struct sockaddr *)&conn->RecvAddr,
- sizeof(conn->RecvAddr));
+ ret = send(conn->s, buf->data, buf->offset, 0);
} while ((ret == -1) && (errno == EINTR));
if (ret != buf->offset) {