summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2000-10-18 00:55:02 +0000
committerTim Potter <tpot@samba.org>2000-10-18 00:55:02 +0000
commit60661e1d28056222753c37995ed3401acf28e747 (patch)
tree4c8827e7bb2602bd72ee57ce4860ee17c60e1320
parent4287b412e99d33a0a5b4e2cc8a2ad3c937cdb266 (diff)
downloadsamba-60661e1d28056222753c37995ed3401acf28e747.tar.gz
samba-60661e1d28056222753c37995ed3401acf28e747.tar.bz2
samba-60661e1d28056222753c37995ed3401acf28e747.zip
Fixes for io_q_setprinter rpc parsing.
(This used to be commit 1b86b9139e87cc4c4a6675ceeda307b91eaa1482)
-rw-r--r--source3/rpc_parse/parse_spoolss.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/rpc_parse/parse_spoolss.c b/source3/rpc_parse/parse_spoolss.c
index 6141c14446..e331401301 100644
--- a/source3/rpc_parse/parse_spoolss.c
+++ b/source3/rpc_parse/parse_spoolss.c
@@ -3419,6 +3419,16 @@ BOOL spoolss_io_q_setprinter(char *desc, SPOOL_Q_SETPRINTER *q_u, prs_struct *ps
{
if (!sec_io_desc_buf(desc, &q_u->secdesc_ctr, ps, depth))
return False;
+ } else {
+ uint32 dummy;
+
+ /* Parse a NULL security descriptor. This should really
+ happen inside the sec_io_desc_buf() function. */
+
+ prs_debug(ps, depth, "", "sec_io_desc_buf");
+ if (!prs_uint32("size", ps, depth + 1, &dummy)) return False;
+ if (!prs_uint32("ptr", ps, depth + 1, &dummy)) return
+ False;
}
if(!prs_uint32("command", ps, depth, &q_u->command))