mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-03 07:31:54 +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)
|
static inline void limit_pop(struct limit *l)
|
||||||
{
|
{
|
||||||
|
ASSERT_DIE(l->count > 0);
|
||||||
--l->count;
|
--l->count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user