summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-11-19 08:20:41 -0500
committerStephen Gallagher <sgallagh@redhat.com>2009-11-19 08:36:18 -0500
commitc4e99a892e0bcf8d432761d6df3fe06ead6aad75 (patch)
treed84c59b227a989f67d33a15faea3297fa6c5ece4
parent15dc6329c159e3f03e25cc18a49681e0f4be9c51 (diff)
downloadsssd-c4e99a892e0bcf8d432761d6df3fe06ead6aad75.tar.gz
sssd-c4e99a892e0bcf8d432761d6df3fe06ead6aad75.tar.xz
sssd-c4e99a892e0bcf8d432761d6df3fe06ead6aad75.zip
Fix sysdb upgrade bug
After completing an upgrade successfully, we were still falling into the "version not found" case. We should be exiting the function after performing the upgrade.
-rw-r--r--server/db/sysdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/db/sysdb.c b/server/db/sysdb.c
index db6879454..b59ffa4c7 100644
--- a/server/db/sysdb.c
+++ b/server/db/sysdb.c
@@ -1290,7 +1290,7 @@ static int sysdb_domain_init_internal(TALLOC_CTX *mem_ctx,
if (strcmp(version, SYSDB_VERSION_0_3) == 0) {
ret = sysdb_upgrade_03(ctx, &version);
- if (ret != EOK) goto done;
+ goto done;
}
}