aboutsummaryrefslogtreecommitdiff
path: root/net/samba410/files/patch-dnssock.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/samba410/files/patch-dnssock.c')
-rw-r--r--net/samba410/files/patch-dnssock.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/net/samba410/files/patch-dnssock.c b/net/samba410/files/patch-dnssock.c
new file mode 100644
index 000000000000..766de19d7779
--- /dev/null
+++ b/net/samba410/files/patch-dnssock.c
@@ -0,0 +1,13 @@
+--- lib/addns/dnssock.c.orig 2018-06-11 14:38:36 UTC
++++ lib/addns/dnssock.c
+@@ -221,9 +221,7 @@ static DNS_ERROR dns_send_udp(struct dns
+ 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) {