diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2010-11-14 00:11:47 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-11-14 00:11:47 +0100 |
commit | 606be0e289acbcc27ea594be2c21e9750f410991 (patch) | |
tree | 28d353ab9905c5189fcfd061c09b59b7328b6445 /src/iptables.c | |
parent | 8e20dc0ecf427258ee6a19b7adad8e9d24da3e64 (diff) | |
download | connman-606be0e289acbcc27ea594be2c21e9750f410991.tar.gz connman-606be0e289acbcc27ea594be2c21e9750f410991.tar.bz2 connman-606be0e289acbcc27ea594be2c21e9750f410991.zip |
iptables: Flush netfilter table cache after committing
Diffstat (limited to 'src/iptables.c')
-rw-r--r-- | src/iptables.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/iptables.c b/src/iptables.c index 3579c83e..b7b336f4 100644 --- a/src/iptables.c +++ b/src/iptables.c @@ -1302,7 +1302,12 @@ int __connman_iptables_commit(const char *table_name) g_free(repl); - return err; + if (err < 0) + return err; + + g_hash_table_remove(table_hash, table_name); + + return 0; } static void remove_table(gpointer user_data) |