diff options
author | Andreas Schneider <asn@samba.org> | 2013-03-12 15:17:54 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2013-03-15 12:11:03 +0100 |
commit | c8abc6f13879c6aad9dbde4f464f707e28083ff1 (patch) | |
tree | 2ea2b8f11fa623560bdf05ead375a6a4213ab282 /librpc/ndr | |
parent | b6e276af309dc57cb244786643cb43d09deacbb0 (diff) | |
download | samba-c8abc6f13879c6aad9dbde4f464f707e28083ff1.tar.gz samba-c8abc6f13879c6aad9dbde4f464f707e28083ff1.tar.bz2 samba-c8abc6f13879c6aad9dbde4f464f707e28083ff1.zip |
ndr: Pass down string_flags in ndr_pull_ntprinting_printer().
Reviewed-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'librpc/ndr')
-rw-r--r-- | librpc/ndr/ndr_ntprinting.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/librpc/ndr/ndr_ntprinting.c b/librpc/ndr/ndr_ntprinting.c index b22830fabd..e4f47bb046 100644 --- a/librpc/ndr/ndr_ntprinting.c +++ b/librpc/ndr/ndr_ntprinting.c @@ -58,6 +58,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_ntprinting_printer(struct ndr_pull *ndr, int if (r->devmode) { _mem_save_devmode_0 = NDR_PULL_GET_MEM_CTX(ndr); NDR_PULL_SET_MEM_CTX(ndr, r->devmode, 0); + r->devmode->string_flags = r->info.string_flags; NDR_CHECK(ndr_pull_ntprinting_devicemode(ndr, NDR_SCALARS|NDR_BUFFERS, r->devmode)); NDR_PULL_SET_MEM_CTX(ndr, _mem_save_devmode_0, 0); } @@ -74,6 +75,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_ntprinting_printer(struct ndr_pull *ndr, int } r->printer_data = talloc_realloc(ndr, r->printer_data, struct ntprinting_printer_data, r->count + 1); NDR_ERR_HAVE_NO_MEMORY(r->printer_data); + r->printer_data[r->count].string_flags = r->info.string_flags; NDR_CHECK(ndr_pull_ntprinting_printer_data(ndr, NDR_SCALARS, &r->printer_data[r->count])); r->count++; } |