summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-08-30 11:26:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:22 -0500
commit410cc0e9c7413ee8508ddbdf31403f176e5bc4dc (patch)
tree91649588d69d4ba786e4bd5cbe615ed955c94fab /source3
parent7650d3bb18e1689c0d9c391ad6e5e172e0b54a62 (diff)
downloadsamba-410cc0e9c7413ee8508ddbdf31403f176e5bc4dc.tar.gz
samba-410cc0e9c7413ee8508ddbdf31403f176e5bc4dc.tar.bz2
samba-410cc0e9c7413ee8508ddbdf31403f176e5bc4dc.zip
r24801: When told to ignore the winbind cache also do so while trying to store entries.
Thanks Michael for pointing this out. Guenther (This used to be commit c7047604446c3fc33b5e14833267ac8ad3a906b1)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/winbindd_cache.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c
index 9daee1c9f6..dc729bebe4 100644
--- a/source3/nsswitch/winbindd_cache.c
+++ b/source3/nsswitch/winbindd_cache.c
@@ -799,6 +799,10 @@ static void centry_end(struct cache_entry *centry, const char *format, ...)
char *kstr;
TDB_DATA key, data;
+ if (opt_nocache) {
+ return;
+ }
+
va_start(ap, format);
smb_xvasprintf(&kstr, format, ap);
va_end(ap);