summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'iptables/xtables-config.c')
-rw-r--r--iptables/xtables-config.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/iptables/xtables-config.c b/iptables/xtables-config.c
index 16918bf6..fce03a19 100644
--- a/iptables/xtables-config.c
+++ b/iptables/xtables-config.c
@@ -39,7 +39,9 @@ int xtables_config_main(int argc, char *argv[])
struct nft_table *table;
struct nft_chain *chain;
const char *filename = NULL;
- struct nft_handle h;
+ struct nft_handle h = {
+ .family = AF_INET,
+ };
if (argc > 2) {
fprintf(stderr, "Usage: %s [<config_file>]\n", argv[0]);