summaryrefslogtreecommitdiffstats
path: root/src/kadmin
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2013-03-15 13:03:26 -0400
committerGreg Hudson <ghudson@mit.edu>2013-03-15 13:03:26 -0400
commitb1314b12b12e6cdbe80338010f265ccdaf359e4e (patch)
tree3823b5ea7ccc4858f7bced2073f6824bda664899 /src/kadmin
parenta8eec52a13ba108b8855aef8cf9dafeb37811d2e (diff)
downloadkrb5-b1314b12b12e6cdbe80338010f265ccdaf359e4e.tar.gz
krb5-b1314b12b12e6cdbe80338010f265ccdaf359e4e.tar.xz
krb5-b1314b12b12e6cdbe80338010f265ccdaf359e4e.zip
Reset ulog header if iprop load fails
If an iprop slave tries to load a dump from the master and it fails, reset the ulog header so we take another full dump, instead of reporting that the slave is current when it isn't. Reported by Richard Basch <basch@alum.mit.edu>. ticket: 7588 target_version: 1.11.2 tags: pullup
Diffstat (limited to 'src/kadmin')
-rw-r--r--src/kadmin/dbutil/dump.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kadmin/dbutil/dump.c b/src/kadmin/dbutil/dump.c
index f326999940..7b0d1dc260 100644
--- a/src/kadmin/dbutil/dump.c
+++ b/src/kadmin/dbutil/dump.c
@@ -1691,6 +1691,8 @@ load_db(int argc, char **argv)
cleanup:
/* If we created a temporary DB but didn't succeed, destroy it. */
if (exit_status && temp_db_created) {
+ if (log_ctx && log_ctx->iproprole)
+ ulog_init_header(util_context);
ret = krb5_db_destroy(util_context, db5util_db_args);
/* Ignore a not supported error since there is nothing to do about
* it anyway. */