projects
/
project
/
firewall3.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
iptables: fix regression with unintended free in need_protomatch
[project/firewall3.git]
/
utils.c
diff --git
a/utils.c
b/utils.c
index 92e966c20f6ac23806edde02c63d61f32f7af537..faa51a1a589b277421f1e5c16ee35d43eea89d92 100644
(file)
--- a/
utils.c
+++ b/
utils.c
@@
-339,15
+339,6
@@
file_contains(const char *path, const char *str)
return seen;
}
return seen;
}
-bool
-fw3_has_table(const bool ipv6, const char *table)
-{
- const char *path = ipv6
- ? "/proc/net/ip6_tables_names" : "/proc/net/ip_tables_names";
-
- return file_contains(path, table);
-}
-
bool
fw3_has_target(const bool ipv6, const char *target)
{
bool
fw3_has_target(const bool ipv6, const char *target)
{