summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-05-16 11:23:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:17:04 -0500
commit651797b41e1968291096b94b2a628ec339981ca8 (patch)
tree7a1274106929b0e0a8be418b6efecf4b7be85507
parent0ed76af63d25fe98fc0366708675a514a3c5bddb (diff)
downloadsamba-651797b41e1968291096b94b2a628ec339981ca8.tar.gz
samba-651797b41e1968291096b94b2a628ec339981ca8.tar.bz2
samba-651797b41e1968291096b94b2a628ec339981ca8.zip
r15632: Remove length limitation from the winbind cache cleanup traversal.
Guenther (This used to be commit 181fa02497e353a36e311f94f5bec2e9cfd1b56e)
-rw-r--r--source3/nsswitch/winbindd_cache.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c
index 6541e10877..0c096352d3 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);
}