From 7c73946f3ae3cee509276ae69bae92c21f711684 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 12 Dec 2014 11:39:25 +0100 Subject: [PATCH] libsmb: Fix removing invalid samlogon cache entries Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/libsmb/samlogon_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/libsmb/samlogon_cache.c b/source3/libsmb/samlogon_cache.c index 1f1ab1d46e8..0041a77c888 100644 --- a/source3/libsmb/samlogon_cache.c +++ b/source3/libsmb/samlogon_cache.c @@ -247,7 +247,7 @@ struct netr_SamInfo3 *netsamlogon_cache_get(TALLOC_CTX *mem_ctx, const struct do if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) { DEBUG(0,("netsamlogon_cache_get: failed to pull entry from cache\n")); - tdb_delete(netsamlogon_tdb, data); + tdb_delete_bystring(netsamlogon_tdb, keystr); TALLOC_FREE(info3); goto done; }