diff options
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/journal-verify.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/journal/journal-verify.c b/src/journal/journal-verify.c index 535b2727ac..e3c3ccdb20 100644 --- a/src/journal/journal-verify.c +++ b/src/journal/journal-verify.c @@ -266,10 +266,14 @@ static int contains_uint64(MMapCache *m, int fd, uint64_t n, uint64_t p) { if (*z == p) return 1; + if (a + 1 >= b) + return 0; + if (p < *z) b = c; - else + else { a = c; + } } return 0; |