summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2015-05-14 21:02:48 +0200
committerErmal LUÇI <eri@pfsense.org>2015-05-14 21:03:10 +0200
commit380ae02017aeb66df8b6c1e3241c13aceb4b25a1 (patch)
tree835b078cc44baa59a17ef240724a838bddf6124a /etc
parent448161bac87086a772310bec897e93c7b6aca473 (diff)
downloadpfsense-380ae02017aeb66df8b6c1e3241c13aceb4b25a1.zip
pfsense-380ae02017aeb66df8b6c1e3241c13aceb4b25a1.tar.gz
Add some error checking to avoid warning during boot
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/services.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index cbf9542..c14615e 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -1609,6 +1609,11 @@ function services_dhcrelay6_configure() {
* on the interface in which the destination server sits.
*/
$srvips = explode(",", $dhcrelaycfg['server']);
+ if (!is_array($srvips)) {
+ log_error("No destination ip has been configured!");
+ return;
+ }
+
$srvifaces = array();
foreach ($srvips as $srcidx => $srvip) {
unset($destif);
@@ -2490,4 +2495,4 @@ function install_cron_job($command, $active=false, $minute="0", $hour="*", $mont
configure_cron();
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud