Commit 49f64feb authored by David Lawrence's avatar David Lawrence
Browse files

removed an irrelevant cast to off_t in the offset wraparound check.

the expression in question is already of type isc_offset_t, which
is just a typedef for off_t.
parent 5fda9ca7
......@@ -1275,7 +1275,7 @@ journal_next(dns_journal_t *j, journal_pos_t *pos) {
* Check for offset wraparound.
if (xhdr.size + sizeof(journal_rawxhdr_t) > ISC_OFFSET_MAXIMUM ||
(off_t)(ISC_OFFSET_MAXIMUM - xhdr.size - sizeof(journal_rawxhdr_t))
ISC_OFFSET_MAXIMUM - xhdr.size - sizeof(journal_rawxhdr_t)
< pos->offset) {
"%s: offset too large", j->filename);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment