# must fail: receipts_walk_bound receipts_walk_65 # the parent walk past its bound (receipts::admit_walking) diff --git a/wai/wai-rs/src/http_binding/receipts.rs b/wai/wai-rs/src/http_binding/receipts.rs index f2bdba57..7d4eb0a9 100644 --- a/wai/wai-rs/src/http_binding/receipts.rs +++ b/wai/wai-rs/src/http_binding/receipts.rs @@ -418,7 +418,7 @@ fn admit_walking( loop { // ยง3 step 3 says `parent_not_held` only of a group that names a parent. let Some(l) = link else { return Err(stop(fetched, "parent_not_held")) }; - if fetched == bound { + if fetched == usize::MAX - bound { return Err(stop(fetched, "bound")); } let bytes = match fetch.get(&l) {