From: Pavel Filipenský Date: Tue, 7 May 2024 11:01:02 +0000 (+0200) Subject: s3:winbindd: Use TDB_REPLACE in tdb_store X-Git-Tag: tdb-1.4.11~712 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26d87d1fefa67b759bc369983b4c55fcd007dca9;p=thirdparty%2Fsamba.git s3:winbindd: Use TDB_REPLACE in tdb_store tdb_store() should use as a flag TDB_REPLACE instead of undocumented 0 Signed-off-by: Pavel Filipenský Reviewed-by: Jeremy Allison --- diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index ca2341ef456..0067f8bd244 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -4605,7 +4605,7 @@ static bool wcache_tdc_store_list( struct winbindd_tdc_domain *domains, size_t n goto done; } - ret = tdb_store( wcache->tdb, key, data, 0 ); + ret = tdb_store(wcache->tdb, key, data, TDB_REPLACE); done: SAFE_FREE( data.dptr ); @@ -4922,7 +4922,7 @@ void wcache_store_ndr(struct winbindd_domain *domain, uint32_t opnum, SBVAL(data.dptr, 4, timeout); memcpy(data.dptr + 12, resp->data, resp->length); - tdb_store(wcache->tdb, key, data, 0); + tdb_store(wcache->tdb, key, data, TDB_REPLACE); done: TALLOC_FREE(key.dptr);