libcli:smb: Fix pulling strings from the wire
authorAndreas Schneider <asn@samba.org>
Tue, 6 Jun 2017 15:27:44 +0000 (17:27 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 7 Jun 2017 03:15:16 +0000 (05:15 +0200)
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>
libcli/smb/util.c

index ef8c9fafa3561720bbe29f354a5cc14a677b3023..80d34281adfa264553ac86ff0a01bf20c6b92a56 100644 (file)
@@ -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);
 }