git: aa05d1b2ef8b - main - db/hash.c: Fix flag check in hash_seq
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 01 Aug 2025 09:33:56 UTC
The branch main has been updated by bnovkov: URL: https://cgit.FreeBSD.org/src/commit/?id=aa05d1b2ef8b573bbd984273f72afa8a70376ae7 commit aa05d1b2ef8b573bbd984273f72afa8a70376ae7 Author: Bojan Novković <bnovkov@FreeBSD.org> AuthorDate: 2025-08-01 09:33:00 +0000 Commit: Bojan Novković <bnovkov@FreeBSD.org> CommitDate: 2025-08-01 09:33:00 +0000 db/hash.c: Fix flag check in hash_seq Fixes: 3a686b851f8f --- lib/libc/db/hash/hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/db/hash/hash.c b/lib/libc/db/hash/hash.c index b1655fe63d55..88a3ffeab828 100644 --- a/lib/libc/db/hash/hash.c +++ b/lib/libc/db/hash/hash.c @@ -704,7 +704,7 @@ hash_seq(const DB *dbp, DBT *key, DBT *data, u_int32_t flag) u_int16_t *bp, ndx; hashp = (HTAB *)dbp->internal; - if (flag != R_FIRST || flag != R_NEXT) { + if (flag != R_FIRST && flag != R_NEXT) { hashp->error = errno = EINVAL; return (ERROR); }