mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
ntprinting: mark the final 4 byte null pointer for printer data in ndr_pull_ntprinting_printer as read.
Guenther
This commit is contained in:
parent
0d3249b927
commit
8835eab013
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user