From 73107aa9f6ac455acdef629e3e41e6dcd34fb929 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Mon, 23 Dec 2024 13:07:40 +1300 Subject: [PATCH] ldb: fix Coverity 1636883 oops. Signed-off-by: Douglas Bagnall Reviewed-by: Martin Schwenke Autobuild-User(master): Martin Schwenke Autobuild-Date(master): Mon Dec 30 04:17:46 UTC 2024 on atb-devel-224 --- lib/ldb/common/ldb_dn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ldb/common/ldb_dn.c b/lib/ldb/common/ldb_dn.c index 0af0d94826a..5b8c0f4f580 100644 --- a/lib/ldb/common/ldb_dn.c +++ b/lib/ldb/common/ldb_dn.c @@ -969,7 +969,7 @@ static bool ldb_dn_casefold_internal(struct ldb_dn *dn) */ TALLOC_FREE(dn->components[i].cf_name); failed: - for (j = 0; j < i; i++) { + for (j = 0; j < i; j++) { TALLOC_FREE(dn->components[j].cf_name); TALLOC_FREE(dn->components[j].cf_value.data); } -- 2.47.3