Skip to content

Commit

Permalink
nghttp3_gaptr: Assert !nghttp3_ksl_it_end
Browse files Browse the repository at this point in the history
Assert !nghttp3_ksl_it_end in nghttp3_gaptr_is_pushed just like we do
in the other functions
  • Loading branch information
tatsuhiro-t committed Dec 31, 2024
1 parent 3496e2b commit 5833788
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/nghttp3_gaptr.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ int nghttp3_gaptr_is_pushed(nghttp3_gaptr *gaptr, uint64_t offset,

it = nghttp3_ksl_lower_bound_search(&gaptr->gap, &q,
nghttp3_ksl_range_exclusive_search);

assert(!nghttp3_ksl_it_end(&it));

m = nghttp3_range_intersect(&q, (nghttp3_range *)nghttp3_ksl_it_key(&it));

return nghttp3_range_len(&m) == 0;
Expand Down

0 comments on commit 5833788

Please sign in to comment.