[SCM] Samba Shared Repository - branch master updated

Jeremy Allison jra at samba.org
Wed Jun 13 01:52:03 UTC 2018


The branch, master has been updated
       via  83cd68c Fix UDP DNS queries in addns
      from  454edac python: call fault_setup() if samba.getopt is used

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 83cd68c8ae7e4febbfbabd11172f7a2e2eef4368
Author: Timur I. Bakeyev <timur at iXsystems.com>
Date:   Tue Jun 12 04:38:00 2018 +0800

    Fix UDP DNS queries in addns
    
    The addns code tries to use common approach for TCP and UDP queries,
    calling connect() for both types of sockets. In case of UDP that
    requires to use send() instead of sendto().
    
    Signed-off-by: Timur I. Bakeyev <timur at iXsystems.com>
    Reviewed-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Jeremy Allison <jra at samba.org>
    
    Autobuild-User(master): Jeremy Allison <jra at samba.org>
    Autobuild-Date(master): Wed Jun 13 03:51:04 CEST 2018 on sn-devel-144

-----------------------------------------------------------------------

Summary of changes:
 lib/addns/dnssock.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/addns/dnssock.c b/lib/addns/dnssock.c
index ec42b7c..30b8fa2 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) {


-- 
Samba Shared Repository



More information about the samba-cvs mailing list