s3:winbindd: don't unclude two '\0' at the end of the domain list
authorStefan Metzmacher <metze@samba.org>
Thu, 10 Mar 2016 11:17:43 +0000 (12:17 +0100)
committerStefan 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

index 560f197ec6646aec6a607244e326437ab6416664..fab41a14d0d88af473039f3250a0b4a58474fa6d 100644 (file)
@@ -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;