mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
r11848: separate out the info levels common to SMB and SMB2 for raw_search
(This used to be commit ed8d307347
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
f3dc80e2ef
commit
e8f17538a7
@ -849,6 +849,13 @@ size_t smbcli_blob_pull_string(struct smbcli_session *session,
|
||||
{
|
||||
int extra;
|
||||
dest->s = NULL;
|
||||
|
||||
/* this is here to cope with SMB2 calls using the SMB
|
||||
parsers. SMB2 will pass smbcli_session==NULL, which forces
|
||||
unicode on (as used by SMB2) */
|
||||
if (session == NULL && !(flags & STR_ASCII)) {
|
||||
flags |= STR_UNICODE;
|
||||
}
|
||||
|
||||
if (flags & STR_LEN8BIT) {
|
||||
if (len_offset > blob->length-1) {
|
||||
|
Reference in New Issue
Block a user