From 651797b41e1968291096b94b2a628ec339981ca8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Tue, 16 May 2006 11:23:29 +0000 Subject: [PATCH] r15632: Remove length limitation from the winbind cache cleanup traversal. Guenther (This used to be commit 181fa02497e353a36e311f94f5bec2e9cfd1b56e) --- source3/nsswitch/winbindd_cache.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c index 6541e108777..0c096352d39 100644 --- a/source3/nsswitch/winbindd_cache.c +++ b/source3/nsswitch/winbindd_cache.c @@ -2101,19 +2101,14 @@ static int traverse_fn_cleanup(TDB_CONTEXT *the_tdb, TDB_DATA kbuf, TDB_DATA dbuf, void *state) { struct cache_entry *centry; - char buf[1024]; - if (!snprintf(buf, kbuf.dsize + 1, "%s", kbuf.dptr)) { - return 1; - } - - centry = wcache_fetch_raw(buf); + centry = wcache_fetch_raw(kbuf.dptr); if (!centry) { return 0; } if (!NT_STATUS_IS_OK(centry->status)) { - DEBUG(10,("deleting centry %s\n", buf)); + DEBUG(10,("deleting centry %s\n", kbuf.dptr)); tdb_delete(the_tdb, kbuf); } -- 2.11.4.GIT