summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-11-06 21:25:52 +0000
committerLuke Leighton <lkcl@samba.org>1999-11-06 21:25:52 +0000
commit681cbb9ec1310fa81f4da40ef0cfed92500b5f4e (patch)
tree19c7508d098adafdef2aa10fb87fb6d3514dd3a8
parent6947f8fac7d6d643a265fdcb56b2a390b9a9a1c0 (diff)
downloadsamba-681cbb9ec1310fa81f4da40ef0cfed92500b5f4e.tar.gz
samba-681cbb9ec1310fa81f4da40ef0cfed92500b5f4e.tar.xz
samba-681cbb9ec1310fa81f4da40ef0cfed92500b5f4e.zip
missed mem_grow_data call
-rw-r--r--source/rpc_client/cli_spoolss.c2
-rw-r--r--source/rpc_parse/parse_spoolss.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/source/rpc_client/cli_spoolss.c b/source/rpc_client/cli_spoolss.c
index ee76a908d0b..78ec5f1d944 100644
--- a/source/rpc_client/cli_spoolss.c
+++ b/source/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/source/rpc_parse/parse_spoolss.c b/source/rpc_parse/parse_spoolss.c
index c7d3d894d15..6b60b741476 100644
--- a/source/rpc_parse/parse_spoolss.c
+++ b/source/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);