summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2012-07-06 18:22:36 +0200
committerGünther Deschner <gd@samba.org>2012-07-06 19:03:19 +0200
commit8835eab013ea1c8919dd6aafda090733f6224535 (patch)
treedcc53a9681538dc52d9a186c601896af8e57ca9b
parent0d3249b927465fdca1765cbd7e17c947364b5ef0 (diff)
downloadsamba-8835eab013ea1c8919dd6aafda090733f6224535.tar.gz
samba-8835eab013ea1c8919dd6aafda090733f6224535.tar.bz2
samba-8835eab013ea1c8919dd6aafda090733f6224535.zip
ntprinting: mark the final 4 byte null pointer for printer data in ndr_pull_ntprinting_printer as read.
Guenther
-rw-r--r--librpc/ndr/ndr_ntprinting.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/librpc/ndr/ndr_ntprinting.c b/librpc/ndr/ndr_ntprinting.c
index 87b743d3f8..76b296d169 100644
--- a/librpc/ndr/ndr_ntprinting.c
+++ b/librpc/ndr/ndr_ntprinting.c
@@ -54,6 +54,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_ntprinting_printer(struct ndr_pull *ndr, int
uint32_t ptr = 0;
ptr = IVAL(ndr->data, ndr->offset);
if (ptr == 0) {
+ ndr->offset = ndr->offset + 4;
break;
}
r->printer_data = talloc_realloc(ndr, r->printer_data, struct ntprinting_printer_data, r->count + 1);