summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-09-24 20:19:31 +0000
committerLuke Leighton <lkcl@samba.org>1998-09-24 20:19:31 +0000
commitd8f66be1415c5e205e9255499911b84a5227638d (patch)
tree3c1d12b4a7254f3ab7f61fbcbcb002ac2d79b0de /source3/rpc_parse
parent0c5dcf52b0934ad68805e74be732905b392391c4 (diff)
downloadsamba-d8f66be1415c5e205e9255499911b84a5227638d.tar.gz
samba-d8f66be1415c5e205e9255499911b84a5227638d.tar.bz2
samba-d8f66be1415c5e205e9255499911b84a5227638d.zip
qualifier name in session_enum was being assumed to exist. if NULL, the
name should not be read. file_enum and connection_enum didn't do this: wonder why only session_enum had this bug? (This used to be commit 203a97e39e7ae7e5511f74dffea0778e7fa6db07)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_srv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_parse/parse_srv.c b/source3/rpc_parse/parse_srv.c
index db557028a5..882ad9e59d 100644
--- a/source3/rpc_parse/parse_srv.c
+++ b/source3/rpc_parse/parse_srv.c
@@ -618,7 +618,7 @@ void srv_io_q_net_sess_enum(char *desc, SRV_Q_NET_SESS_ENUM *q_n, prs_struct *p
prs_align(ps);
prs_uint32("ptr_qual_name", ps, depth, &(q_n->ptr_qual_name));
- smb_io_unistr2("", &(q_n->uni_qual_name), True, ps, depth);
+ smb_io_unistr2("", &(q_n->uni_qual_name), q_n->ptr_qual_name, ps, depth);
prs_align(ps);
@@ -1093,7 +1093,7 @@ void srv_io_q_net_file_enum(char *desc, SRV_Q_NET_FILE_ENUM *q_n, prs_struct *p
prs_align(ps);
prs_uint32("ptr_qual_name", ps, depth, &(q_n->ptr_qual_name));
- smb_io_unistr2("", &(q_n->uni_qual_name), True, ps, depth);
+ smb_io_unistr2("", &(q_n->uni_qual_name), q_n->ptr_qual_name, ps, depth);
prs_align(ps);