diff options
author | Volker Lendecke <vl@samba.org> | 2014-12-12 11:44:06 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-12-12 20:47:06 +0100 |
commit | 81f99bd5c1894302ad0d6549f5fb28fa13df021c (patch) | |
tree | ecc0e2974326e4d448ab2240d7ebabb3e1859eab | |
parent | 8a56911a4ad272ecbc5a0df67fe0c1fb5aabe8b3 (diff) | |
download | samba-81f99bd5c1894302ad0d6549f5fb28fa13df021c.tar.gz samba-81f99bd5c1894302ad0d6549f5fb28fa13df021c.tar.xz samba-81f99bd5c1894302ad0d6549f5fb28fa13df021c.zip |
libsmb: Simplify netsamlogon_cache_get
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | source3/libsmb/samlogon_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/samlogon_cache.c b/source3/libsmb/samlogon_cache.c index 9e194b5142..4e50c78688 100644 --- a/source3/libsmb/samlogon_cache.c +++ b/source3/libsmb/samlogon_cache.c @@ -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 ); |