summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--librpc/ndr/ndr_string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/librpc/ndr/ndr_string.c b/librpc/ndr/ndr_string.c
index 94a18c3224..2229b2e8c0 100644
--- a/librpc/ndr/ndr_string.c
+++ b/librpc/ndr/ndr_string.c
@@ -559,7 +559,7 @@ _PUBLIC_ enum ndr_err_code ndr_check_string_terminator(struct ndr_pull *ndr, uin
uint32_t save_offset;
save_offset = ndr->offset;
- ndr_pull_advance(ndr, (count - 1) * element_size);
+ NDR_CHECK(ndr_pull_advance(ndr, (count - 1) * element_size));
NDR_PULL_NEED_BYTES(ndr, element_size);
for (i = 0; i < element_size; i++) {