From c538409c4aacb76b328e40858e7dbe45762ce24a Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 10 Mar 2016 12:17:43 +0100 Subject: [PATCH] s3:winbindd: don't unclude two '\0' at the end of the domain list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Günther Deschner (cherry picked from commit bb387c5b90e19b5a2f7d65fb8db816e9da51d090) --- source3/winbindd/winbindd_misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/winbindd/winbindd_misc.c b/source3/winbindd/winbindd_misc.c index d32a71e..df43d20 100644 --- 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; -- 1.9.1