]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Ignore iprop deletion of deleted princ
authorTom Yu <tlyu@mit.edu>
Sat, 2 Aug 2014 18:20:35 +0000 (14:20 -0400)
committerTom Yu <tlyu@mit.edu>
Sat, 2 Aug 2014 18:20:35 +0000 (14:20 -0400)
Now that an iprop full dump might not hold a lock around the entire
dump, it's possible that iprop will queue an incremental update while
the dump is in progress.  If a principal is deleted while the dump is
in progress, the dump could omit that principal, yet the deletion
event would still be queued in the ulog.  Ignore that deletion without
generating an error.

This is the same basic change as for ticket #7753.

ticket: 7977

src/lib/kdb/kdb_log.c

index 1a5b1b80f0d07ee45b6e2b2b7d9a38d372b5f9b8..faca467fcf5b55df6492081c88a8a55a1a2ad8fb 100644 (file)
@@ -382,6 +382,8 @@ ulog_replay(krb5_context context, kdb_incr_result_t *incr_ret, char **db_args)
 
             retval = krb5int_delete_principal_no_log(context, dbprinc);
             krb5_free_principal(context, dbprinc);
+            if (retval == KRB5_KDB_NOENTRY)
+                retval = 0;
             if (retval)
                 goto cleanup;
         } else {