Added check to make sure a firewall program is set.

git-svn-id: file:///home/mbr/svn/fwknop/trunk@267 510a4753-2344-4c79-9c09-4d669213fbeb
This commit is contained in:
Damien Stuart
2010-07-16 20:47:50 +00:00
parent aa0cc1c699
commit bf8586922e
+8 -1
View File
@@ -416,7 +416,14 @@ validate_options(fko_srv_options_t *opts)
exit(EXIT_FAILURE);
}
if(opts->config[CONF_EXE_IPTABLES] == NULL
&& opts->config[CONF_EXE_IPFW] == NULL)
{
fprintf(stderr,
"No firewall command executable is set. Please check fwknopd.conf for EXE_IPTABLES or EXE_IPFW.\n"
);
exit(EXIT_FAILURE);
}
return;
}