]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
handle updating an activation time for a mkvno that already has one
authorKen Raeburn <raeburn@mit.edu>
Thu, 29 Jan 2009 22:36:04 +0000 (22:36 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 29 Jan 2009 22:36:04 +0000 (22:36 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/mkey_migrate@21832 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/dbutil/kdb5_mkey.c

index 67bf5470c9e532823111566ba8f6344be27b3228..58bfa7830eeb5edb26c2392ce79af4a039d9c44c 100644 (file)
@@ -498,6 +498,10 @@ kdb5_use_mkey(int argc, char *argv[])
              cur_actkvno != NULL;
              prev_actkvno = cur_actkvno, cur_actkvno = cur_actkvno->next) {
 
+            if (cur_actkvno->act_kvno == use_kvno) {
+                cur_actkvno->act_time = start_time;
+                inserted = 1;   /* fake it */
+            }
             if (!inserted) {
                 if (new_actkvno->act_time < cur_actkvno->act_time) {
                     if (prev_actkvno) {