mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
rust/protover: fix check for overlapping ranges
Closes ticket 27649. Bugfix on e6625113c9.
This commit is contained in:
@@ -174,7 +174,7 @@ impl ProtoSet {
|
||||
if low == u32::MAX || high == u32::MAX {
|
||||
return Err(ProtoverError::ExceedsMax);
|
||||
}
|
||||
if low < last_high {
|
||||
if low <= last_high {
|
||||
return Err(ProtoverError::Overlap);
|
||||
} else if low > high {
|
||||
return Err(ProtoverError::LowGreaterThanHigh);
|
||||
|
||||
Reference in New Issue
Block a user