[krb5-auth-dialog] Only update the expiry time if we succesfully renewed the ticket



commit d8680960e21a5aaa3b32b2b9a56223cc0f742d0c
Author: Guido Günther <agx sigxcpu org>
Date:   Sat Dec 25 23:38:04 2010 +0100

    Only update the expiry time if we succesfully renewed the ticket

 src/ka-dialog.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/ka-dialog.c b/src/ka-dialog.c
index b51cdd2..a59938c 100644
--- a/src/ka-dialog.c
+++ b/src/ka-dialog.c
@@ -848,7 +848,8 @@ ka_renew_credentials (KaApplet* applet)
 				       my_creds.times.endtime);
 	}
 out:
-	creds_expiry = my_creds.times.endtime;
+	if (!retval)
+		creds_expiry = my_creds.times.endtime;
 	krb5_free_cred_contents (kcontext, &my_creds);
 	krb5_cc_close (kcontext, ccache);
 	return retval;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]