summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-07-10 12:24:56 +0200
committerVolker Lendecke <vl@samba.org>2009-07-15 10:55:20 +0200
commit3edcd55bf140d09833284ba5a0f04f86b04ef7dc (patch)
tree4f608ee12dcd56f02143417bc816d318a16e12e4 /source3/libads
parentd936d1bd84e130aaff1de64cb1ecbd1f936dd9c4 (diff)
downloadsamba-3edcd55bf140d09833284ba5a0f04f86b04ef7dc.tar.gz
samba-3edcd55bf140d09833284ba5a0f04f86b04ef7dc.tar.bz2
samba-3edcd55bf140d09833284ba5a0f04f86b04ef7dc.zip
Remove gencache_init/shutdown
gencache_get/set/del/iterate call gencache_init() internally anyway. And we've been very lazy calling gencache_shutdown, so this seems not really required.
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/dns.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/source3/libads/dns.c b/source3/libads/dns.c
index 3a9e849668..5cf768de67 100644
--- a/source3/libads/dns.c
+++ b/source3/libads/dns.c
@@ -754,10 +754,6 @@ bool sitename_store(const char *realm, const char *sitename)
bool ret = False;
char *key;
- if (!gencache_init()) {
- return False;
- }
-
if (!realm || (strlen(realm) == 0)) {
DEBUG(0,("sitename_store: no realm\n"));
return False;
@@ -795,10 +791,6 @@ char *sitename_fetch(const char *realm)
const char *query_realm;
char *key;
- if (!gencache_init()) {
- return NULL;
- }
-
if (!realm || (strlen(realm) == 0)) {
query_realm = lp_realm();
} else {