git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a9acd4
)
s3:winbindd: don't unclude two '\0' at the end of the domain list
author
Stefan Metzmacher
<metze@samba.org>
Thu, 10 Mar 2016 11:17:43 +0000
(12:17 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Sun, 13 Mar 2016 19:10:33 +0000
(20:10 +0100)
This avoids a scary "trustdom_list_done: Got invalid trustdom response" message.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11782
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
source3/winbindd/winbindd_misc.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/winbindd_misc.c
b/source3/winbindd/winbindd_misc.c
index 560f197ec6646aec6a607244e326437ab6416664..fab41a14d0d88af473039f3250a0b4a58474fa6d 100644
(file)
--- a/
source3/winbindd/winbindd_misc.c
+++ b/
source3/winbindd/winbindd_misc.c
@@
-214,7
+214,7
@@
enum winbindd_result winbindd_dual_list_trusted_domains(struct winbindd_domain *
extra_data[extra_data_len-1] = '\0';
state->response->extra_data.data = extra_data;
- state->response->length += extra_data_len
+1
;
+ state->response->length += extra_data_len;
}
return WINBINDD_OK;