mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
MFC r196525:
Consider flag == 0 as the same of flag == R_NEXT. This change will restore a historical behavior that has been changed by revision 190491, and has seen to break exim. Approved by: re (kib)
This commit is contained in:
parent
d6976e0558
commit
c291f85f32
1 changed files with 2 additions and 2 deletions
|
|
@ -711,7 +711,7 @@ hash_seq(const DB *dbp, DBT *key, DBT *data, u_int32_t flag)
|
|||
hashp->cndx = 1;
|
||||
hashp->cpage = NULL;
|
||||
}
|
||||
next_bucket:
|
||||
next_bucket:
|
||||
for (bp = NULL; !bp || !bp[0]; ) {
|
||||
if (!(bufp = hashp->cpage)) {
|
||||
for (bucket = hashp->cbucket;
|
||||
|
|
@ -732,7 +732,7 @@ hash_seq(const DB *dbp, DBT *key, DBT *data, u_int32_t flag)
|
|||
}
|
||||
} else {
|
||||
bp = (u_int16_t *)hashp->cpage->page;
|
||||
if (flag == R_NEXT) {
|
||||
if (flag == R_NEXT || flag == 0) {
|
||||
hashp->cndx += 2;
|
||||
if (hashp->cndx > bp[0]) {
|
||||
hashp->cpage = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue