mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
netsamlogon_cache: Use ndr_pull_struct_blob_all
Be a bit more strict for error checking Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
2e573eead9
commit
fe4e24e143
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user