diff options
author | Jean-François Micouleau <jfm@samba.org> | 2001-11-21 23:25:30 +0000 |
---|---|---|
committer | Jean-François Micouleau <jfm@samba.org> | 2001-11-21 23:25:30 +0000 |
commit | bfbe7f377e5fcb09e87bfc866196dfc51a8fe64d (patch) | |
tree | 7846b2e95eb62c4699ce3e2e02623d7a2b9345ba /source/rpc_parse/parse_prs.c | |
parent | 54c968913d6553c6d834b068234ab176917075eb (diff) | |
download | samba-bfbe7f377e5fcb09e87bfc866196dfc51a8fe64d.tar.gz samba-bfbe7f377e5fcb09e87bfc866196dfc51a8fe64d.tar.xz samba-bfbe7f377e5fcb09e87bfc866196dfc51a8fe64d.zip |
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.
Diffstat (limited to 'source/rpc_parse/parse_prs.c')
-rw-r--r-- | source/rpc_parse/parse_prs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/rpc_parse/parse_prs.c b/source/rpc_parse/parse_prs.c index 89b0db46095..f902210b7b8 100644 --- a/source/rpc_parse/parse_prs.c +++ b/source/rpc_parse/parse_prs.c @@ -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; } |