summaryrefslogtreecommitdiff
path: root/source/winbindd/winbindd_cm.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-04-21 10:55:23 +0200
committerGünther Deschner <gd@samba.org>2008-04-21 11:03:32 +0200
commit2d6a1c5da64195784b0b102edb268356a24d84b5 (patch)
tree24acafedc7f2156c9d41f947cfc5fa7f8f8b4f83 /source/winbindd/winbindd_cm.c
parentf27a20f25c9b2038621a6394821bbedbf17daa73 (diff)
downloadsamba-2d6a1c5da64195784b0b102edb268356a24d84b5.tar.gz
winbind: Use libnbt for NTLOGON SAMLOGON mailslot request and reply.
Guenther
Diffstat (limited to 'source/winbindd/winbindd_cm.c')
-rw-r--r--source/winbindd/winbindd_cm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/winbindd/winbindd_cm.c b/source/winbindd/winbindd_cm.c
index 73f74ca8ec0..97b22599850 100644
--- a/source/winbindd/winbindd_cm.c
+++ b/source/winbindd/winbindd_cm.c
@@ -1093,10 +1093,12 @@ static bool dcip_to_name(const struct winbindd_domain *domain,
if (send_getdc_request(winbind_messaging_context(),
pss, domain->name, &domain->sid)) {
+ const char *dc_name = NULL;
int i;
smb_msleep(100);
for (i=0; i<5; i++) {
- if (receive_getdc_response(pss, domain->name, name)) {
+ if (receive_getdc_response(pss, domain->name, &dc_name)) {
+ fstrcpy(name, dc_name);
namecache_store(name, 0x20, 1, &ip_list);
return True;
}