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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user