summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-12-11 14:16:51 +0100
committerVolker Lendecke <vlendec@samba.org>2010-12-19 23:25:06 +0100
commitff5f767d0e31ea0c5311ce48d8e0387eebd84ce8 (patch)
tree6d0e98c7175541346e9d31c5a90050e02bbf1e28 /source3
parentd39fedaa69b20e8f29fff9cd9a09c1bb1ecec7be (diff)
downloadsamba-ff5f767d0e31ea0c5311ce48d8e0387eebd84ce8.tar.gz
samba-ff5f767d0e31ea0c5311ce48d8e0387eebd84ce8.tar.bz2
samba-ff5f767d0e31ea0c5311ce48d8e0387eebd84ce8.zip
s3: Remove two pointless slprintf calls
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/samlogon_cache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/libsmb/samlogon_cache.c b/source3/libsmb/samlogon_cache.c
index 2e7a9c6b03..52fbe04351 100644
--- a/source3/libsmb/samlogon_cache.c
+++ b/source3/libsmb/samlogon_cache.c
@@ -102,7 +102,7 @@ bool netsamlogon_cache_shutdown(void)
void netsamlogon_clear_cached_user(struct netr_SamInfo3 *info3)
{
struct dom_sid user_sid;
- fstring keystr, tmp;
+ fstring keystr;
if (!info3) {
return;
@@ -117,7 +117,7 @@ void netsamlogon_clear_cached_user(struct netr_SamInfo3 *info3)
sid_compose(&user_sid, info3->base.domain_sid, info3->base.rid);
/* 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_clear_cached_user: SID [%s]\n", keystr));
@@ -132,7 +132,7 @@ void netsamlogon_clear_cached_user(struct netr_SamInfo3 *info3)
bool netsamlogon_cache_store(const char *username, struct netr_SamInfo3 *info3)
{
TDB_DATA data;
- fstring keystr, tmp;
+ fstring keystr;
bool result = false;
struct dom_sid user_sid;
time_t t = time(NULL);
@@ -154,7 +154,7 @@ bool netsamlogon_cache_store(const char *username, struct netr_SamInfo3 *info3)
sid_compose(&user_sid, info3->base.domain_sid, info3->base.rid);
/* 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_store: SID [%s]\n", keystr));