summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-restore.c
diff options
context:
space:
mode:
Diffstat (limited to 'iptables/xtables-restore.c')
-rw-r--r--iptables/xtables-restore.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c
index 30ea813c..e83eacc3 100644
--- a/iptables/xtables-restore.c
+++ b/iptables/xtables-restore.c
@@ -161,7 +161,9 @@ static void add_param_to_argv(char *parsestart)
int
xtables_restore_main(int argc, char *argv[])
{
- struct nft_handle h;
+ struct nft_handle h = {
+ .family = AF_INET, /* default to IPv4 */
+ };
char buffer[10240];
int c;
char curtable[XT_TABLE_MAXNAMELEN + 1];