summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-06-25 14:25:38 +0200
committerVolker Lendecke <vlendec@samba.org>2011-06-25 15:40:15 +0200
commitebd70d8c4256ce46a3966ce43e8d032f2b455e9d (patch)
treeb247f20341e408aa06605ab90e877c0f73227259
parent3e73ed77e074264ff295d12e57fdec29fbf621fa (diff)
downloadsamba-ebd70d8c4256ce46a3966ce43e8d032f2b455e9d.tar.gz
samba-ebd70d8c4256ce46a3966ce43e8d032f2b455e9d.tar.bz2
samba-ebd70d8c4256ce46a3966ce43e8d032f2b455e9d.zip
s3: Fix winbindd_wins_byname
Before the async change, the addresses were separated by spaces, not tabs Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Jun 25 15:40:15 CEST 2011 on sn-devel-104
-rw-r--r--source3/winbindd/winbindd_wins_byname.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/winbindd/winbindd_wins_byname.c b/source3/winbindd/winbindd_wins_byname.c
index ad642d479d..742aaf2c7d 100644
--- a/source3/winbindd/winbindd_wins_byname.c
+++ b/source3/winbindd/winbindd_wins_byname.c
@@ -127,14 +127,15 @@ NTSTATUS winbindd_wins_byname_recv(struct tevent_req *req,
print_sockaddr(addr, sizeof(addr), &state->addrs[i]);
response = talloc_asprintf_append_buffer(
- response, "%s\t", addr);
+ response, "%s%s", addr,
+ i < (state->num_addrs-1) ? " " : "");
if (response == NULL) {
return NT_STATUS_NO_MEMORY;
}
}
response = talloc_asprintf_append_buffer(
- response, "%s\n", state->request->data.winsreq);
+ response, "\t%s\n", state->request->data.winsreq);
if (response == NULL) {
return NT_STATUS_NO_MEMORY;
}