1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r23575: Fix a segfault when lp_load is called before init_registry.

Michael
(This used to be commit 235a5ae4cd)
This commit is contained in:
Michael Adam 2007-06-21 20:56:56 +00:00 committed by Gerald (Jerry) Carter
parent ead4ea509e
commit 510ba543cc

View File

@ -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;
}