summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/param/loadparm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 5255c95c27..ed77cfda43 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -3071,6 +3071,7 @@ static struct tdb_wrap *lp_regdb_open(void)
if (!reg_tdb) {
DEBUG(0, ("lp_regdb_open: failed to open %s: %s\n",
lock_path("registry.tdb"), strerror(errno)));
+ goto done;
}
else {
DEBUG(10, ("lp_regdb_open: reg tdb opened.\n"));
@@ -3085,6 +3086,7 @@ static struct tdb_wrap *lp_regdb_open(void)
/* this is apparently not implemented in the tdb */
}
+done:
return reg_tdb;
}