[SCM] Samba Shared Repository - branch v3-4-test updated - release-4-0-0alpha7-1090-g1b401a1

Karolin Seeger kseeger at samba.org
Fri May 29 09:32:48 GMT 2009


The branch, v3-4-test has been updated
       via  1b401a1b5374d037757954bb023287fa57b1c9b9 (commit)
      from  51610de47bb709739ba84075395f5409be5ebc5c (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-test


- Log -----------------------------------------------------------------
commit 1b401a1b5374d037757954bb023287fa57b1c9b9
Author: Kumar Thangavelu <Kumar.Thangavelu at riverbed.com>
Date:   Fri May 29 11:27:38 2009 +0200

    s3/getdcname: Fix 'net' crash.
    
    'net' command crashed when attempting to join a
    domain. This occurred in a very specific case where
    the DC had multiple IPs and one of the IPs was invalid.
    
    Signed-off-by: Volker Lendecke <vl at samba.org>
    (cherry picked from commit 795692bd9546b91647ea96cc43ebb5c8efc0aaf2)

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

Summary of changes:
 source3/libsmb/dsgetdcname.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libsmb/dsgetdcname.c b/source3/libsmb/dsgetdcname.c
index 1064a63..221f611 100644
--- a/source3/libsmb/dsgetdcname.c
+++ b/source3/libsmb/dsgetdcname.c
@@ -626,8 +626,8 @@ static NTSTATUS discover_dc_dns(TALLOC_CTX *mem_ctx,
 
 		struct ip_service_name *r = &dclist[count];
 
-		r->port = dcs[count].port;
-		r->hostname = dcs[count].hostname;
+		r->port = dcs[i].port;
+		r->hostname = dcs[i].hostname;
 
 		/* If we don't have an IP list for a name, lookup it up */
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list