mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
libsmb: Simplify netsamlogon_cache_get
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
committed by
Jeremy Allison
parent
8a56911a4a
commit
81f99bd5c1
@ -211,7 +211,7 @@ struct netr_SamInfo3 *netsamlogon_cache_get(TALLOC_CTX *mem_ctx, const struct do
|
||||
{
|
||||
struct netr_SamInfo3 *info3 = NULL;
|
||||
TDB_DATA data;
|
||||
fstring keystr, tmp;
|
||||
fstring keystr;
|
||||
enum ndr_err_code ndr_err;
|
||||
DATA_BLOB blob;
|
||||
struct netsamlogoncache_entry r;
|
||||
@ -223,7 +223,7 @@ struct netr_SamInfo3 *netsamlogon_cache_get(TALLOC_CTX *mem_ctx, const struct do
|
||||
}
|
||||
|
||||
/* Prepare key as DOMAIN-SID/USER-RID string */
|
||||
slprintf(keystr, sizeof(keystr), "%s", sid_to_fstring(tmp, user_sid));
|
||||
sid_to_fstring(keystr, user_sid);
|
||||
DEBUG(10,("netsamlogon_cache_get: SID [%s]\n", keystr));
|
||||
data = tdb_fetch_bystring( netsamlogon_tdb, keystr );
|
||||
|
||||
|
Reference in New Issue
Block a user