projects
/
project
/
firewall3.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Avoid segfault when freeing rules whose target could not be found
[project/firewall3.git]
/
iptables.c
diff --git
a/iptables.c
b/iptables.c
index
cea3fcd
..
2684933
100644
(file)
--- a/
iptables.c
+++ b/
iptables.c
@@
-1271,7
+1271,9
@@
free:
xtables_rule_matches_free(&r->matches);
- free(r->target->t);
+ if (r->target)
+ free(r->target->t);
+
free(r);
/* reset all targets and matches */