]> eyrie.org Git - kerberos/kstart.git/commitdiff
Shorten the wake-up period if there was an initial failure
authorRasmus Borup Hansen <rbh@intomics.com>
Mon, 30 Apr 2012 18:24:05 +0000 (11:24 -0700)
committerRuss Allbery <rra@stanford.edu>
Mon, 30 Apr 2012 18:24:05 +0000 (11:24 -0700)
If -i is given to krenew and the initial ticket renewal failed, start
with the shorter wake-up interval of one minute just as if a
subsequent renewal failed.

framework.c

index 63cf1d377f97303727ffd194690fce5df9ec2078..66e851413a9b4d71fa4d61ded2f3c0d71cd03b0c 100644 (file)
@@ -344,7 +344,6 @@ run_framework(krb5_context ctx, struct config *config)
     if (config->keep_ticket > 0) {
         struct timeval timeout;
 
-        code = 0;
         add_handler(ctx, config, alarm_handler, SIGALRM, "SIGALRM");
         if (config->command == NULL) {
             add_handler(ctx, config, exit_handler, SIGHUP, "SIGHUP");