From b437f095956165e930d88bb08cb7eb117a41ccbc Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 21 Apr 2008 10:25:28 +0200 Subject: samlogoncache: Use data_blob_const in netsamlogon_cache_get. Guenther (This used to be commit f27a20f25c9b2038621a6394821bbedbf17daa73) --- source3/libsmb/samlogon_cache.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source3/libsmb/samlogon_cache.c b/source3/libsmb/samlogon_cache.c index 235880910c..2d2588f70c 100644 --- a/source3/libsmb/samlogon_cache.c +++ b/source3/libsmb/samlogon_cache.c @@ -213,8 +213,7 @@ struct netr_SamInfo3 *netsamlogon_cache_get(TALLOC_CTX *mem_ctx, const DOM_SID * goto done; } - blob.data = (uint8 *)data.dptr; - blob.length = data.dsize; + 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); -- cgit