diff options
author | Volker Lendecke <vl@samba.org> | 2007-12-20 10:55:45 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2007-12-21 09:58:20 +0100 |
commit | c131d0dc52ec09c9227eff3d68877369c37aaed5 (patch) | |
tree | a74dcd387eca5058c17db90525f33cae0d9c3943 /source/smbd/server.c | |
parent | e18fab269c7370a6670c56eeab60fd90feecf0b2 (diff) | |
download | samba-c131d0dc52ec09c9227eff3d68877369c37aaed5.tar.gz samba-c131d0dc52ec09c9227eff3d68877369c37aaed5.tar.xz samba-c131d0dc52ec09c9227eff3d68877369c37aaed5.zip |
Add a global cache
It hurts, but I think this global variable is necessary for transition, and it
has the potential to remove quite a few other global variables without messing
with APIs too much.
Diffstat (limited to 'source/smbd/server.c')
-rw-r--r-- | source/smbd/server.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/smbd/server.c b/source/smbd/server.c index 40037074f63..43a6d62a289 100644 --- a/source/smbd/server.c +++ b/source/smbd/server.c @@ -1191,6 +1191,12 @@ extern void build_options(bool screen); if (smbd_messaging_context() == NULL) exit(1); + if (smbd_memcache() == NULL) { + exit(1); + } + + memcache_set_global(smbd_memcache()); + /* Initialise the password backed before the global_sam_sid to ensure that we fetch from ldap before we make a domain sid up */ |