From 606be0e289acbcc27ea594be2c21e9750f410991 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Sun, 14 Nov 2010 00:11:47 +0100 Subject: iptables: Flush netfilter table cache after committing --- src/iptables.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3