diff options
author | Andreas Schneider <asn@samba.org> | 2012-12-14 17:09:34 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2012-12-21 13:56:00 +0100 |
commit | 4d02e868f6ad35a408d011e888fba5618bd0c6d9 (patch) | |
tree | 6661bc507edc8e8ff8e7905d712b950b06e404b6 /librpc/ndr | |
parent | e3eaeb942b0a0eaee810c1d5f719854745e0dc4c (diff) | |
download | samba-4d02e868f6ad35a408d011e888fba5618bd0c6d9.tar.gz samba-4d02e868f6ad35a408d011e888fba5618bd0c6d9.tar.bz2 samba-4d02e868f6ad35a408d011e888fba5618bd0c6d9.zip |
ndr: Check return code of ndr_pull_advance().
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'librpc/ndr')
-rw-r--r-- | librpc/ndr/ndr_string.c | 2 |
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++) { |