summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/dbwrap_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/dbwrap_util.c b/source3/lib/dbwrap_util.c
index 1e3755af98..f83840d8b7 100644
--- a/source3/lib/dbwrap_util.c
+++ b/source3/lib/dbwrap_util.c
@@ -114,8 +114,8 @@ NTSTATUS dbwrap_change_uint32_atomic(struct db_context *db, const char *keystr,
TDB_DATA data;
NTSTATUS ret;
- if (!(rec = db->fetch_locked(db, NULL,
- string_term_tdb_data(keystr)))) {
+ rec = db->fetch_locked(db, NULL, string_term_tdb_data(keystr));
+ if (!rec) {
return NT_STATUS_UNSUCCESSFUL;
}