From nobody Fri Aug 1 09:33:56 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4btgkX5cJxz63hK6; Fri, 01 Aug 2025 09:33:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4btgkX4sv4z43R7; Fri, 01 Aug 2025 09:33:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754040836; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DGbjPHQBtXmK0NLrvv8i5q+ILp1AgObPxgM8JZEpxNw=; b=sqa6hNJOeol02g4hStI0xKbmV3w86ynsvLMhUlJKyPoWR7dh/t/RBhnz7DN6SlCp2oNXbj hsVjYu6HRomhGrQ8s/K2ddX3VWs5oC9H0vpdNhZn17/kjMIJWEkirPBEI7GR/LedtddKhM og+ofBHVxXvSUip6uI1Z8DtXWjvQSLPZxRUfYc7U5FYQm+LpQ2inks7GK8p0AeHl0aVB0b G0MljV4SQR5bCjpnFkSkQ47V2qsDIapbrhsNy4nqF08rCzZBLVBqTENTGV4+onQR/lpebx fRDpe7CQtFzzBHDKStaaux1Z6C7PKLnhss5R1Asn+d8guFS1hUtmIZ4q47dPeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754040836; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DGbjPHQBtXmK0NLrvv8i5q+ILp1AgObPxgM8JZEpxNw=; b=srwMVBnY6O1ZGTA3NmCxQWK1E2d/qgmx6yLQUPfzbGKEOO0NFmG1v7P7LpZ5dWJlhlH3o8 +2nbh3iHkrk516ANFenEWhX/L8yAgo5tJ4Hpe4ODKMx0aetnQ3Ar2niExX4RBQEsJTMZB3 HMfCkTMYbr30yZ9xMXyNmsctDz1CAxBuulG0A4Pcn6xQ8Mmg8gM0taw6sLSRwbzRe+KL1B oqyUnRndZPscpOXULMwtICnNz9q6YpDmh7y1Dq0xF+lIeiVtC6QtgYeDfoInbdcXorCjPT gWTipUHtpt8pdwh1FZta40QxstCvuXL4yZuPrQPD3Srxn9uxnjqvvoZl6fnXYA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1754040836; a=rsa-sha256; cv=none; b=h8iHWL/iqXB6K5RE9/xjmWS97Onc8aFF025PePpBsfcvaKhy/3gSWMqwvZaipLo1PP8tBu YGxHIEO/4Ei+ilIU+ALCSQKUYhls/zK7Hq0y3HQD7oXA8GKI9/5LcvFEstoGQEBJ66wYrK KVPsgP48EWnbe6lNaI9kfxb9ir43nxRIyXCUI93cj9nu7V6gmS6oeVUGFdSBdj47hiML1i h0ph/qiRVdfPPRjj/6x3DNxRws4CnGdYxpIYgTEAOE4+DXiNGVB2fJrckEAqQfCE1n84ze G36JoilJsLnY7fTEJxEok2Hpfc6dJtD9A0CG6ESkTjzMkp9gehma2EVN6VWQ6A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4btgkX3jPjzj4X; Fri, 01 Aug 2025 09:33:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 5719XuE1014624; Fri, 1 Aug 2025 09:33:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 5719Xubw014621; Fri, 1 Aug 2025 09:33:56 GMT (envelope-from git) Date: Fri, 1 Aug 2025 09:33:56 GMT Message-Id: <202508010933.5719Xubw014621@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Bojan =?utf-8?Q?Novkovi=C4=87?= Subject: git: aa05d1b2ef8b - main - db/hash.c: Fix flag check in hash_seq List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bnovkov X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: aa05d1b2ef8b573bbd984273f72afa8a70376ae7 Auto-Submitted: auto-generated The branch main has been updated by bnovkov: URL: https://cgit.FreeBSD.org/src/commit/?id=aa05d1b2ef8b573bbd984273f72afa8a70376ae7 commit aa05d1b2ef8b573bbd984273f72afa8a70376ae7 Author: Bojan Novković AuthorDate: 2025-08-01 09:33:00 +0000 Commit: Bojan Novković 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); }