diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2011-06-23 18:25:36 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2011-06-23 18:25:36 +0000 |
commit | d80967c9d37e6a77cddc9926076fc7016a8c5034 (patch) | |
tree | 5026770674e7105131097eadc6b265d41dfc6a8c /userspace/ebtables2 | |
parent | b1acc078e9c55ca5f406f76dba9a89c70c7c6bde (diff) |
fix use-after-free issue found by Coverity static analysis (thanks to Jiri Popelka)
Diffstat (limited to 'userspace/ebtables2')
-rw-r--r-- | userspace/ebtables2/libebtc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/userspace/ebtables2/libebtc.c b/userspace/ebtables2/libebtc.c index 4a9a79d..f66ebef 100644 --- a/userspace/ebtables2/libebtc.c +++ b/userspace/ebtables2/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) |