Skip to content
Snippets Groups Projects
Commit d837b451 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa
Browse files

Tighten assertion condition

parent 3522b13e
No related merge requests found
...@@ -160,7 +160,7 @@ static int rob_write_data(ngtcp2_rob *rob, uint64_t offset, const uint8_t *data, ...@@ -160,7 +160,7 @@ static int rob_write_data(ngtcp2_rob *rob, uint64_t offset, const uint8_t *data,
ngtcp2_rob_data_del(d, rob->mem); ngtcp2_rob_data_del(d, rob->mem);
return rv; return rv;
} }
} else if (d->range.begin + rob->chunk < offset) { } else if (d->range.begin + rob->chunk <= offset) {
assert(0); assert(0);
} }
n = ngtcp2_min(len, d->range.begin + rob->chunk - offset); n = ngtcp2_min(len, d->range.begin + rob->chunk - offset);
......
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