diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-04-18 11:37:43 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-04-18 11:37:43 +0200 |
commit | bfbcfc41f55c7a428ee89f67d739bb3d1028507d (patch) | |
tree | 3063244b7606f9e1cff307f0eee0d4a4be8c271b /source4 | |
parent | 22bbb0ebe67bc1eb4014d399edcf03340fd6c803 (diff) | |
download | samba-bfbcfc41f55c7a428ee89f67d739bb3d1028507d.tar.gz samba-bfbcfc41f55c7a428ee89f67d739bb3d1028507d.tar.bz2 samba-bfbcfc41f55c7a428ee89f67d739bb3d1028507d.zip |
Fix samba3 protocol to correctly include the NULL terminator
Andrew Bartlett
(This used to be commit fa459913039673e55aa9300962f01e5079dd20d8)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/winbind/wb_samba3_cmd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/winbind/wb_samba3_cmd.c b/source4/winbind/wb_samba3_cmd.c index f43947e79a..f0aaaa7778 100644 --- a/source4/winbind/wb_samba3_cmd.c +++ b/source4/winbind/wb_samba3_cmd.c @@ -720,6 +720,9 @@ static void list_users_recv(struct composite_context *ctx) if (NT_STATUS_IS_OK(status)) { s3call->response.extra_data.data = extra_data; s3call->response.length += extra_data_len; + if (extra_data) { + s3call->response.length += 1; + } } wbsrv_samba3_async_epilogue(status, s3call); |