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 | 1293eca01ee8433f59df1015093b4d259aaecbf3 (patch) | |
tree | d743b99330236ead198c7fceed577496cc237c42 | |
parent | caf30a4b77b49c02f2d824969e7398b89627e811 (diff) | |
download | ebtables-1293eca01ee8433f59df1015093b4d259aaecbf3.tar.gz ebtables-1293eca01ee8433f59df1015093b4d259aaecbf3.tar.bz2 ebtables-1293eca01ee8433f59df1015093b4d259aaecbf3.zip |
fix use-after-free issue found by Coverity static analysis (thanks to Jiri Popelka)
-rw-r--r-- | libebtc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |