0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Limited value must never go under zero

This commit is contained in:
Maria Matejka 2022-10-11 11:06:58 +02:00
parent 02dc895550
commit b83a9d5f9a

View File

@ -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;
}