summaryrefslogtreecommitdiffstats
path: root/source/rpc_parse
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2000-08-14 03:17:17 +0000
committerGerald Carter <jerry@samba.org>2000-08-14 03:17:17 +0000
commitbc154e8522a75540a8504195c1e6f45739167e6b (patch)
tree2b232ea7dc7ae6551e2a1e8e53811e487ecf5cba /source/rpc_parse
parent236f19659cea87cc35128990954d30c43114b889 (diff)
downloadsamba-bc154e8522a75540a8504195c1e6f45739167e6b.tar.gz
samba-bc154e8522a75540a8504195c1e6f45739167e6b.tar.xz
samba-bc154e8522a75540a8504195c1e6f45739167e6b.zip
fix for new_smb_io_relarraystr() and new_smb_io_relstr()
to use spool_smb_io_unistr() as this does not call prs_align() befrore parsing the UNISTR. Parsing a void* buffer from an RPC should not be aligned on 4 byte boundaries. Don't think this change affects any marshalling code, only unmarshalling... jerry
Diffstat (limited to 'source/rpc_parse')
-rw-r--r--source/rpc_parse/parse_spoolss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/rpc_parse/parse_spoolss.c b/source/rpc_parse/parse_spoolss.c
index 42494ed76e0..1b565cb2d90 100644
--- a/source/rpc_parse/parse_spoolss.c
+++ b/source/rpc_parse/parse_spoolss.c
@@ -1559,7 +1559,7 @@ static BOOL new_smb_io_relstr(char *desc, NEW_BUFFER *buffer, int depth, UNISTR
return False;
/* read the string */
- if (!smb_io_unistr(desc, string, ps, depth))
+ if (!spoolss_smb_io_unistr(desc, string, ps, depth))
return False;
if(!prs_set_offset(ps, old_offset))
@@ -1649,7 +1649,7 @@ static BOOL new_smb_io_relarraystr(char *desc, NEW_BUFFER *buffer, int depth, ui
return False;
do {
- if (!smb_io_unistr(desc, &chaine, ps, depth))
+ if (!spoolss_smb_io_unistr(desc, &chaine, ps, depth))
return False;
l_chaine=str_len_uni(&chaine);