From: Volker Lendecke Date: Thu, 3 Aug 2017 15:03:26 +0000 (+0200) Subject: netsamlogon_cache: Use ndr_pull_struct_blob_all X-Git-Tag: talloc-2.1.11~506 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fe4e24e143c28fd98faaac97ef6bc56180f0ecc7;p=thirdparty%2Fsamba.git netsamlogon_cache: Use ndr_pull_struct_blob_all Be a bit more strict for error checking Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/libsmb/samlogon_cache.c b/source3/libsmb/samlogon_cache.c index 0a2890e4231..70645f2dc40 100644 --- a/source3/libsmb/samlogon_cache.c +++ b/source3/libsmb/samlogon_cache.c @@ -253,8 +253,9 @@ struct netr_SamInfo3 *netsamlogon_cache_get(TALLOC_CTX *mem_ctx, const struct do blob = data_blob_const(data.dptr, data.dsize); - ndr_err = ndr_pull_struct_blob(&blob, mem_ctx, &r, - (ndr_pull_flags_fn_t)ndr_pull_netsamlogoncache_entry); + ndr_err = ndr_pull_struct_blob_all( + &blob, mem_ctx, &r, + (ndr_pull_flags_fn_t)ndr_pull_netsamlogoncache_entry); if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) { DEBUG(0,("netsamlogon_cache_get: failed to pull entry from cache\n"));