From: Jeremy Allison Date: Fri, 10 Jan 2020 23:52:31 +0000 (-0800) Subject: s3: lib: dbwrap_ctdb: Ensure value_valid is set true if we find the record in the... X-Git-Tag: ldb-2.1.0~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36ea1e188d5ea8d40c47ffc466a494c1160e471c;p=thirdparty%2Fsamba.git s3: lib: dbwrap_ctdb: Ensure value_valid is set true if we find the record in the marshall buffer. Found by "Christopher O Cowan - Christopher.O.Cowan@ibm.com" Signed-off-by: Jeremy Allison Reviewed-by: Volker Lendecke --- diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c index ef667261359..11710603a5e 100644 --- a/source3/lib/dbwrap/dbwrap_ctdb.c +++ b/source3/lib/dbwrap/dbwrap_ctdb.c @@ -534,6 +534,7 @@ static struct db_record *db_ctdb_fetch_locked_transaction(struct db_ctdb_ctx *ct } if (pull_newest_from_marshall_buffer(ctx->transaction->m_write, key, NULL, result, &result->value)) { + result->value_valid = true; return result; }