git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e73ed7
)
s3: Fix winbindd_wins_byname
author
Volker Lendecke
<vl@samba.org>
Sat, 25 Jun 2011 12:25:38 +0000
(14:25 +0200)
committer
Volker Lendecke
<vlendec@samba.org>
Sat, 25 Jun 2011 13:40:15 +0000
(15:40 +0200)
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
source3/winbindd/winbindd_wins_byname.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/winbindd_wins_byname.c
b/source3/winbindd/winbindd_wins_byname.c
index ad642d479d0ca6e69f56cd1b840c517ba07a112a..742aaf2c7d3fd5ba88847d973bcc3399341f1492 100644
(file)
--- 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;
}