From e243dce812d697467d5f75e099ca1466cfa1a724 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Mon, 16 Jul 2018 20:26:23 +0200 Subject: [PATCH] node: fix invalid assertion in node_type() --- lib/node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node.c b/lib/node.c index 460a966be..a2e9693a0 100644 --- a/lib/node.c +++ b/lib/node.c @@ -556,7 +556,7 @@ int node_fd(struct node *n) struct node_type * node_type(struct node *n) { - assert(n->state == STATE_INITIALIZED); + assert(n->state != STATE_DESTROYED); return n->_vt; }