summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
diff options
context:
space:
mode:
authorChristof Schmitt <cs@samba.org>2019-09-17 12:11:59 -0700
committerJeremy Allison <jra@samba.org>2019-11-26 21:28:31 +0000
commit6dfa5bb64fce1ddd054966bd89b07e43034c6edb (patch)
tree3238a10220c593b9418614b31709a7902fc3915a /source3/smbd/server.c
parent39f21a58b0c196ef32e66a27051837e4395bb958 (diff)
downloadsamba-6dfa5bb64fce1ddd054966bd89b07e43034c6edb.tar.gz
sharesec: Return NTSTATUS from share_info_db_init
Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/server.c')
-rw-r--r--source3/smbd/server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index a8e69e0f0a1..38fc36881f4 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -2020,7 +2020,8 @@ extern void build_options(bool screen);
after the fork on every single connection. This is a small
performance improvment and reduces the total number of system
fds used. */
- if (!share_info_db_init()) {
+ status = share_info_db_init();
+ if (!NT_STATUS_IS_OK(status)) {
exit_daemon("ERROR: failed to load share info db.", EACCES);
}