r16479: When dcip_to_name failed to get the name of the ip in saf_servername we
authorGünther Deschner <gd@samba.org>
Thu, 22 Jun 2006 23:56:20 +0000 (23:56 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:18:56 +0000 (11:18 -0500)
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

source/nsswitch/winbindd_cm.c

index ea4d8503c1b15e957cd86e4daedc35681deb1c29..c1276bd9612dd7b9885ed6f46c6491a44d134c72 100644 (file)
@@ -783,7 +783,7 @@ static NTSTATUS cm_open_connection(struct winbindd_domain *domain,
                                fstrcpy( domain->dcname, saf_name );
                        } else {
                                add_failed_connection_entry(
-                                       domain->name, saf_name,
+                                       domain->name, saf_servername,
                                        NT_STATUS_UNSUCCESSFUL);
                        }
                }