Revert "libcli:smb: Fix pulling strings from the wire"
authorAndreas Schneider <asn@samba.org>
Thu, 8 Jun 2017 13:02:16 +0000 (15:02 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 9 Jun 2017 11:00:11 +0000 (13:00 +0200)
This reverts commit a4efe647c51700cee93b7574e5955e264aa96893.

A different fix will follow.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12824

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
libcli/smb/util.c

index 80d34281adfa264553ac86ff0a01bf20c6b92a56..ef8c9fafa3561720bbe29f354a5cc14a677b3023 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, false,
+       return internal_bytes_pull_str(mem_ctx, _str, ucs2, true,
                                       buf, buf_len, _buf_consumed);
 }