summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-05-17 22:19:12 +0000
committerErmal <eri@pfsense.org>2011-05-17 22:19:12 +0000
commitb27ade8ebd36bb3e8df55d121b7071167136d19d (patch)
tree118651e0a616a10ef5ea543666ce20f973efb8b7
parentf1dbcf474113c3c1b82fe263bb5f283e67598b3f (diff)
downloadpfsense-b27ade8ebd36bb3e8df55d121b7071167136d19d.zip
pfsense-b27ade8ebd36bb3e8df55d121b7071167136d19d.tar.gz
Test for null names passed to these functions as a safety precaution.
-rw-r--r--etc/inc/service-utils.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/service-utils.inc b/etc/inc/service-utils.inc
index 57e5472..57b1719 100644
--- a/etc/inc/service-utils.inc
+++ b/etc/inc/service-utils.inc
@@ -82,6 +82,9 @@ function start_service($name) {
global $config;
global $rcfileprefix;
+ if (empty($name))
+ return;
+
/* make sure service is stopped before starting */
stop_service($name);
sleep(2);
OpenPOWER on IntegriCloud