mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 01:31:55 +00:00
Limited value must never go under zero
This commit is contained in:
parent
02dc895550
commit
b83a9d5f9a
@ -32,6 +32,7 @@ static inline int limit_push(struct limit *l, void *data)
|
||||
|
||||
static inline void limit_pop(struct limit *l)
|
||||
{
|
||||
ASSERT_DIE(l->count > 0);
|
||||
--l->count;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user