util.sasl.scram: Remove unused initial value [luacheck]
authorKim Alvefur <zash@zash.se>
Sun, 28 Feb 2016 18:26:45 +0000 (19:26 +0100)
committerKim Alvefur <zash@zash.se>
Sun, 28 Feb 2016 18:26:45 +0000 (19:26 +0100)
util/sasl/scram.lua

index b3c4edc8f090ab6287b103a0a599f9ded9bcd1ad..febbc63981c5043407ea33c1291571e230f14b23 100644 (file)
@@ -163,7 +163,7 @@ local function scram_gen(hash_name, H_f, HMAC_f)
                                salt = generate_uuid();
                                iteration_count = default_i;
 
-                               local succ = false;
+                               local succ;
                                succ, stored_key, server_key = getAuthenticationDatabaseSHA1(password, salt, iteration_count);
                                if not succ then
                                        log("error", "Generating authentication database failed. Reason: %s", stored_key);