From 410cc0e9c7413ee8508ddbdf31403f176e5bc4dc Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 30 Aug 2007 11:26:17 +0000 Subject: 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) --- source3/nsswitch/winbindd_cache.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3') 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); -- cgit