summaryrefslogtreecommitdiff
path: root/tools/iptables-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/iptables-test.c')
-rw-r--r--tools/iptables-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/iptables-test.c b/tools/iptables-test.c
index 35c63008..133c4f96 100644
--- a/tools/iptables-test.c
+++ b/tools/iptables-test.c
@@ -1159,7 +1159,7 @@ static struct connman_iptables *connman_iptables_init(const char *table_name)
if (table->info == NULL)
goto err;
- table->ipt_sock = socket(AF_INET, SOCK_RAW, IPPROTO_RAW);
+ table->ipt_sock = socket(AF_INET, SOCK_RAW | SOCK_CLOEXEC, IPPROTO_RAW);
if (table->ipt_sock < 0)
goto err;