summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nest/limit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/nest/limit.h b/nest/limit.h
index 5838ad3b..f8d4b212 100644
--- a/nest/limit.h
+++ b/nest/limit.h
@@ -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;
}