libcli/smb: Fix alignment problems of smb_bytes_pull_str()
authorStefan Metzmacher <metze@samba.org>
Wed, 15 Mar 2017 17:04:30 +0000 (17:04 +0000)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 9 Jun 2017 11:00:11 +0000 (13:00 +0200)
commite60e77a8afd095bfdb3d678aa48570ca159d9b24
treef1b905c8070ddc1cda31841091fa0ff18ba891ca
parentc786c61d1a72f3f8782e8f5a4a087276ce161a6e
libcli/smb: Fix alignment problems of smb_bytes_pull_str()

This function needs to get the whole smb buffer in order to get
the alignment for unicode correct.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
libcli/smb/smb1cli_session.c
libcli/smb/smb_util.h
libcli/smb/util.c