mirror of
https://github.com/samba-team/samba.git
synced 2025-07-29 15:42:04 +03:00
samr_querydom_info level 1: found the meaning of the unknow fields. And
discovered that our reply is short by 4 bytes since day 1 of this code. Added a decode function to rpcclient too. splitted the STRING2 fields filling while trying to understand the win9x userlist bug. (didn't fix the bug, but the reply looks closer to NT). J.F.
This commit is contained in:
@ -851,12 +851,12 @@ BOOL prs_buffer2(BOOL charmode, char *name, prs_struct *ps, int depth, BUFFER2 *
|
||||
BOOL prs_string2(BOOL charmode, char *name, prs_struct *ps, int depth, STRING2 *str)
|
||||
{
|
||||
int i;
|
||||
char *q = prs_mem_get(ps, str->str_str_len);
|
||||
char *q = prs_mem_get(ps, str->str_max_len);
|
||||
if (q == NULL)
|
||||
return False;
|
||||
|
||||
if (UNMARSHALLING(ps)) {
|
||||
str->buffer = (unsigned char *)prs_alloc_mem(ps,str->str_str_len);
|
||||
str->buffer = (unsigned char *)prs_alloc_mem(ps,str->str_max_len);
|
||||
if (str->buffer == NULL)
|
||||
return False;
|
||||
}
|
||||
|
Reference in New Issue
Block a user