git: 12c79b31e803 - stable/15 - libc/db: Correct a typo in the the hash tampering test
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 17 Nov 2026 19:48:20 UTC
The branch stable/15 has been updated by bnovkov:
URL: https://cgit.FreeBSD.org/src/commit/?id=12c79b31e803e436fc38ba95b823730470df1176
commit 12c79b31e803e436fc38ba95b823730470df1176
Author: Bojan Novković <bnovkov@FreeBSD.org>
AuthorDate: 2026-09-18 14:13:17 +0000
Commit: Bojan Novković <bnovkov@FreeBSD.org>
CommitDate: 2026-11-17 19:47:49 +0000
libc/db: Correct a typo in the the hash tampering test
Fixes the gcc build.
Fixes: 7f5f07b139a5
(cherry picked from commit b774fbdb0077571dd34ca55ecb87199895ff47d3)
---
lib/libc/tests/db/db_hash_tamper_test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/libc/tests/db/db_hash_tamper_test.c b/lib/libc/tests/db/db_hash_tamper_test.c
index ce16c8071b63..9321b25722c1 100644
--- a/lib/libc/tests/db/db_hash_tamper_test.c
+++ b/lib/libc/tests/db/db_hash_tamper_test.c
@@ -47,7 +47,7 @@ create_db(void)
ATF_CHECK(db != NULL);
ATF_REQUIRE(atf_utils_file_exists(dbname));
- ATF_REQUIRE(db->put(db, &key, &key, 0) == 0);
+ ATF_REQUIRE(db->put(db, &key, &val, 0) == 0);
db->close(db);
}