diff --git a/epan/except.c b/epan/except.c index dc95301d51..4f911418c4 100644 --- a/epan/except.c +++ b/epan/except.c @@ -260,6 +260,7 @@ void except_setup_try(struct except_stacknode *esn, struct except_stacknode *except_pop(void) { struct except_stacknode *top = get_top(); + assert (top->except_type == XCEPT_CLEANUP || top->except_type == XCEPT_CATCHER); set_top(top->except_down); return top; }