summaryrefslogtreecommitdiff
path: root/libcli/smb
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2017-06-06 17:27:44 +0200
committerJeremy Allison <jra@samba.org>2017-06-07 05:15:16 +0200
commita4efe647c51700cee93b7574e5955e264aa96893 (patch)
treef2973ed4dfbb6925491a5e77bbb0bce21e834b89 /libcli/smb
parente6b3d7410e621e5c515460cd2788dd4ff8dd4474 (diff)
downloadsamba-a4efe647c51700cee93b7574e5955e264aa96893.tar.gz
libcli:smb: Fix pulling strings from the wire
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12824 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'libcli/smb')
-rw-r--r--libcli/smb/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcli/smb/util.c b/libcli/smb/util.c
index ef8c9fafa35..80d34281adf 100644
--- a/libcli/smb/util.c
+++ b/libcli/smb/util.c
@@ -372,6 +372,6 @@ NTSTATUS smb_bytes_pull_str(TALLOC_CTX *mem_ctx, char **_str, bool ucs2,
const uint8_t *buf, size_t buf_len,
size_t *_buf_consumed)
{
- return internal_bytes_pull_str(mem_ctx, _str, ucs2, true,
+ return internal_bytes_pull_str(mem_ctx, _str, ucs2, false,
buf, buf_len, _buf_consumed);
}