git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d3249b
)
ntprinting: mark the final 4 byte null pointer for printer data in ndr_pull_ntprintin...
author
Günther Deschner
<gd@samba.org>
Fri, 6 Jul 2012 16:22:36 +0000
(18:22 +0200)
committer
Günther Deschner
<gd@samba.org>
Fri, 6 Jul 2012 17:03:19 +0000
(19:03 +0200)
Guenther
librpc/ndr/ndr_ntprinting.c
patch
|
blob
|
history
diff --git
a/librpc/ndr/ndr_ntprinting.c
b/librpc/ndr/ndr_ntprinting.c
index 87b743d3f8ee07864c159250c9efe51bdde301a5..76b296d169b68395bb972c0c0ae1ea8aab3e8ddd 100644
(file)
--- 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);