Fixes for io_q_setprinter rpc parsing.
authorTim Potter <tpot@samba.org>
Wed, 18 Oct 2000 00:55:02 +0000 (00:55 +0000)
committerTim Potter <tpot@samba.org>
Wed, 18 Oct 2000 00:55:02 +0000 (00:55 +0000)
(This used to be commit 1b86b9139e87cc4c4a6675ceeda307b91eaa1482)

source3/rpc_parse/parse_spoolss.c

index 6141c14446ea302f7c9f62ef3e2bd6e73c4e3fe5..e331401301b68d7dc0b869de3faa9a98cf9c3ac8 100644 (file)
@@ -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))