Author: gd Date: 2006-06-22 23:56:20 +0000 (Thu, 22 Jun 2006) New Revision: 16479
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16479 Log: When dcip_to_name failed to get the name of the ip in saf_servername we cannot put saf_name in the failed conn cache as it's uninitialized. Store saf_servername (the ip) in that case. Volker, please check. Guenther Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_cm.c trunk/source/nsswitch/winbindd_cm.c Changeset: Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_cm.c =================================================================== --- branches/SAMBA_3_0/source/nsswitch/winbindd_cm.c 2006-06-22 22:00:43 UTC (rev 16478) +++ branches/SAMBA_3_0/source/nsswitch/winbindd_cm.c 2006-06-22 23:56:20 UTC (rev 16479) @@ -783,7 +783,7 @@ fstrcpy( domain->dcname, saf_name ); } else { add_failed_connection_entry( - domain->name, saf_name, + domain->name, saf_servername, NT_STATUS_UNSUCCESSFUL); } } Modified: trunk/source/nsswitch/winbindd_cm.c =================================================================== --- trunk/source/nsswitch/winbindd_cm.c 2006-06-22 22:00:43 UTC (rev 16478) +++ trunk/source/nsswitch/winbindd_cm.c 2006-06-22 23:56:20 UTC (rev 16479) @@ -783,7 +783,7 @@ fstrcpy( domain->dcname, saf_name ); } else { add_failed_connection_entry( - domain->name, saf_name, + domain->name, saf_servername, NT_STATUS_UNSUCCESSFUL); } }