summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/rpc_client/cli_spoolss.c2
-rw-r--r--source3/rpc_parse/parse_spoolss.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_client/cli_spoolss.c b/source3/rpc_client/cli_spoolss.c
index ee76a908d0..78ec5f1d94 100644
--- a/source3/rpc_client/cli_spoolss.c
+++ b/source3/rpc_client/cli_spoolss.c
@@ -56,7 +56,7 @@ BOOL spoolss_enum_printers(struct cli_state *cli, uint16 fnum,
DEBUG(5,("SPOOLSS Enum Printers (Server: %s level: %d)\n",
servername, level));
- make_spoolss_q_enumprinters(&q_o, flags, servername, level, 0x200);
+ make_spoolss_q_enumprinters(&q_o, flags, servername, level, 0x800);
/* turn parameters into data stream */
spoolss_io_q_enumprinters("", &q_o, &buf, 0);
diff --git a/source3/rpc_parse/parse_spoolss.c b/source3/rpc_parse/parse_spoolss.c
index c7d3d894d1..6b60b74147 100644
--- a/source3/rpc_parse/parse_spoolss.c
+++ b/source3/rpc_parse/parse_spoolss.c
@@ -1716,6 +1716,8 @@ static BOOL spoolss_io_read_buffer(char *desc, prs_struct *ps, int depth, BUFFER
{
return False;
}
+ mem_grow_data(&(ps->data), ps->io,
+ ps->data->data_size + buffer->size, 0);
prs_uint8s(True, "buffer", ps, depth, buffer->data, buffer->size);
prs_align(ps);