summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libebtc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libebtc.c b/libebtc.c
index 4a9a79d..f66ebef 100644
--- a/libebtc.c
+++ b/libebtc.c
@@ -473,8 +473,8 @@ void ebt_delete_cc(struct ebt_cntchanges *cc)
cc->prev->next = cc->next;
cc->next->prev = cc->prev;
free(cc);
- }
- cc->type = CNT_DEL;
+ } else
+ cc->type = CNT_DEL;
}
void ebt_empty_chain(struct ebt_u_entries *entries)