git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97b200d
)
Merge a fix from HEAD to 3_0
author
Volker Lendecke
<vlendec@samba.org>
Tue, 30 Mar 2004 08:11:59 +0000
(08:11 +0000)
committer
Volker Lendecke
<vlendec@samba.org>
Tue, 30 Mar 2004 08:11:59 +0000
(08:11 +0000)
Volker
(This used to be commit
6bc88d91e569541e4d4a2147e28439db96d02bd6
)
source3/nsswitch/winbindd_wins.c
patch
|
blob
|
history
diff --git
a/source3/nsswitch/winbindd_wins.c
b/source3/nsswitch/winbindd_wins.c
index bc982d00443fb749f5061f595118a235b119da44..a1eef159c0a8d1a13df9d270fb2a494b9302d560 100644
(file)
--- a/
source3/nsswitch/winbindd_wins.c
+++ b/
source3/nsswitch/winbindd_wins.c
@@
-201,7
+201,10
@@
enum winbindd_result winbindd_wins_byname(struct winbindd_cli_state *state)
}
if (i != 0) {
/* Clear out the newline character */
- response[strlen(response)-1] = ' ';
+ /* But only if there is something in there,
+ otherwise we clobber something in the stack */
+ if (strlen(response))
+ response[strlen(response)-1] = ' ';
}
fstrcat(response,addr);
fstrcat(response,"\t");