From a4efe647c51700cee93b7574e5955e264aa96893 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 6 Jun 2017 17:27:44 +0200 Subject: [PATCH] libcli:smb: Fix pulling strings from the wire BUG: https://bugzilla.samba.org/show_bug.cgi?id=12824 Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison --- libcli/smb/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.47.2