summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-04-21 10:25:28 +0200
committerGünther Deschner <gd@samba.org>2008-04-21 10:25:28 +0200
commitb437f095956165e930d88bb08cb7eb117a41ccbc (patch)
treecab0814ceceb9ca0687e138e8868f17d8433da94 /source3
parentff615f232968979f57a31f43a4f668c2c4fd20df (diff)
downloadsamba-b437f095956165e930d88bb08cb7eb117a41ccbc.tar.gz
samba-b437f095956165e930d88bb08cb7eb117a41ccbc.tar.bz2
samba-b437f095956165e930d88bb08cb7eb117a41ccbc.zip
samlogoncache: Use data_blob_const in netsamlogon_cache_get.
Guenther (This used to be commit f27a20f25c9b2038621a6394821bbedbf17daa73)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/samlogon_cache.c3
1 files changed, 1 insertions, 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);