lib: Remove a used-once variable
authorVolker Lendecke <vl@samba.org>
Tue, 29 Nov 2016 16:11:59 +0000 (16:11 +0000)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 2 Dec 2016 12:31:59 +0000 (13:31 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Fri Dec  2 13:31:59 CET 2016 on sn-devel-144

source3/libsmb/samlogon_cache.c

index 59ae9f4418693a81416b2b792f2130a4f1605cfd..8131b2b1eb8e32fae43705e8cfcb2fc160cccdf3 100644 (file)
@@ -126,7 +126,6 @@ bool netsamlogon_cache_store(const char *username, struct netr_SamInfo3 *info3)
        char keystr[DOM_SID_STR_BUFLEN];
        bool result = false;
        struct dom_sid  user_sid;
-       time_t t = time(NULL);
        TALLOC_CTX *tmp_ctx = talloc_stackframe();
        DATA_BLOB blob;
        enum ndr_err_code ndr_err;
@@ -172,7 +171,7 @@ bool netsamlogon_cache_store(const char *username, struct netr_SamInfo3 *info3)
                info3->base.account_name.string = talloc_strdup(info3, username);
        }
 
-       r.timestamp = t;
+       r.timestamp = time(NULL);
        r.info3 = *info3;
 
        if (DEBUGLEVEL >= 10) {