summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-03-04 16:47:33 +0100
committerGünther Deschner <gd@samba.org>2010-03-05 15:18:01 +0100
commit55326549852a3ab1114a8cb1536578ae02183eb8 (patch)
treea0b68c1a99fa9791a64d2dcaf0d3058c23bcc2fb /source3/rpc_server
parentbecbb624eb90b84ff20b128de1aee5f5acfc3dbc (diff)
downloadsamba-55326549852a3ab1114a8cb1536578ae02183eb8.tar.gz
samba-55326549852a3ab1114a8cb1536578ae02183eb8.tar.bz2
samba-55326549852a3ab1114a8cb1536578ae02183eb8.zip
s3-spoolss: fix _spoolss_EnumPrinterDataEx after idl
Guenther
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index a97ecdecaf..b70376f52a 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -9090,9 +9090,7 @@ static WERROR registry_value_to_printer_enum_value(TALLOC_CTX *mem_ctx,
struct regval_blob *v,
struct spoolss_PrinterEnumValues *r)
{
- WERROR result;
-
- r->data = TALLOC_ZERO_P(mem_ctx, union spoolss_PrinterData);
+ r->data = TALLOC_ZERO_P(mem_ctx, DATA_BLOB);
W_ERROR_HAVE_NO_MEMORY(r->data);
r->value_name = talloc_strdup(mem_ctx, regval_name(v));
@@ -9102,14 +9100,7 @@ static WERROR registry_value_to_printer_enum_value(TALLOC_CTX *mem_ctx,
r->data_length = regval_size(v);
if (r->data_length) {
- DATA_BLOB blob = data_blob_const(regval_data_p(v),
- regval_size(v));
- result = pull_spoolss_PrinterData(mem_ctx, &blob,
- r->data,
- r->type);
- if (!W_ERROR_IS_OK(result)) {
- return result;
- }
+ *r->data = data_blob_talloc(r->data, regval_data_p(v), regval_size(v));
}
return WERR_OK;