Commit d549f747 authored by Franco Fichtner's avatar Franco Fichtner

src: three crash reports

(cherry picked from commit 50e4df6c)
parent 36b1baa7
......@@ -2641,7 +2641,7 @@ function services_get()
$pconfig = array();
$pconfig['name'] = "relayd";
$pconfig['description'] = gettext("Server load balancing daemon");
$pconfig['php']['restart'] = array('relayd_configure_full', 'filter_configure');
$pconfig['php']['restart'] = array('relayd_configure', 'filter_configure');
$pconfig['php']['start'] = array('relayd_configure', 'filter_configure');
$services[] = $pconfig;
}
......
......@@ -37,6 +37,9 @@ $tcpflags = array("syn", "ack", "fin", "rst", "psh", "urg", "ece", "cwr");
/* OS types, request from backend */
$ostypes = json_decode(configd_run('filter list osfp json'));
if ($ostypes == null) {
$ostypes = array();
}
/**
* build array with interface options for this form
......
......@@ -56,10 +56,8 @@ $rdr_a = get_lb_redirects();
$relay_hosts = get_lb_summary();
$lb_logfile = '/var/log/relayd.log';
$nentries = $config['syslog']['nentries'];
if (!$nentries) {
$nentries = 50;
}
$nentries = isset($config['syslog']['nentries']) ? $config['syslog']['nentries'] : 50;
?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment