diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/nsswitch/winbindd_cache.c | 9 |
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); } |