projects
/
platform
/
upstream
/
ebtables.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caf30a4
)
fix use-after-free issue found by Coverity static analysis (thanks to Jiri Popelka)
author
Bart De Schuymer
<bdschuym@pandora.be>
Thu, 23 Jun 2011 18:25:36 +0000
(18:25 +0000)
committer
Bart De Schuymer
<bdschuym@pandora.be>
Thu, 23 Jun 2011 18:25:36 +0000
(18:25 +0000)
libebtc.c
patch
|
blob
|
history
diff --git
a/libebtc.c
b/libebtc.c
index
4a9a79d
..
f66ebef
100644
(file)
--- 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)