summaryrefslogtreecommitdiffstats
path: root/etc/rc.kill_states
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2014-12-02 11:28:37 +0100
committerErmal LUÇI <eri@pfsense.org>2014-12-02 11:28:37 +0100
commit8ad1ee636afe18a52b717db6b7112b26b7ebeed9 (patch)
tree07c175f530ff058afb9697e5f022c41d5a7a0983 /etc/rc.kill_states
parent2eb3efc20a504c48b66546b4d6b9c9f837555638 (diff)
downloadpfsense-8ad1ee636afe18a52b717db6b7112b26b7ebeed9.zip
pfsense-8ad1ee636afe18a52b717db6b7112b26b7ebeed9.tar.gz
Remove exit and also properly close open files
Diffstat (limited to 'etc/rc.kill_states')
-rwxr-xr-xetc/rc.kill_states4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.kill_states b/etc/rc.kill_states
index 69646d9..a20753a 100755
--- a/etc/rc.kill_states
+++ b/etc/rc.kill_states
@@ -45,7 +45,7 @@ $local_ip = str_replace("\n", "", $argv[2]);
if (empty($interface) || !does_interface_exist($interface)) {
log_error("rc.kill_states: Invalid interface '{$interface}'");
- exit;
+ return;
}
if (!empty($local_ip)) {
@@ -56,7 +56,7 @@ if (!empty($local_ip)) {
if (!is_ipaddr($local_ip)) {
log_error("rc.kill_states: Invalid IP address '{$local_ip}'");
- exit;
+ return;
}
}
OpenPOWER on IntegriCloud