From 937091161b82782d3578c80a6e56123c86050752 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 21 Apr 2008 10:55:23 +0200 Subject: winbind: Use libnbt for NTLOGON SAMLOGON mailslot request and reply. Guenther (This used to be commit 2d6a1c5da64195784b0b102edb268356a24d84b5) --- source3/winbindd/winbindd_cm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/winbindd') diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c index 73f74ca8ec..97b2259985 100644 --- a/source3/winbindd/winbindd_cm.c +++ b/source3/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; } -- cgit