summaryrefslogtreecommitdiffstats
path: root/etc/inc/ipsec.auth-user.php
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2014-12-02 12:01:15 +0100
committerErmal LUÇI <eri@pfsense.org>2014-12-02 12:01:15 +0100
commit52550ca5e3a4e76d3b8859d8330c8df008c06b4b (patch)
tree04bc08dbc4877bc23cc0a209c0cf00d96123b037 /etc/inc/ipsec.auth-user.php
parent9ea554ee5cb25ea3bf5bb6bf7997c6c7379ce349 (diff)
downloadpfsense-52550ca5e3a4e76d3b8859d8330c8df008c06b4b.zip
pfsense-52550ca5e3a4e76d3b8859d8330c8df008c06b4b.tar.gz
Remove exit from as much as possible backend code
Diffstat (limited to 'etc/inc/ipsec.auth-user.php')
-rwxr-xr-xetc/inc/ipsec.auth-user.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/ipsec.auth-user.php b/etc/inc/ipsec.auth-user.php
index 7230626..0bf702d 100755
--- a/etc/inc/ipsec.auth-user.php
+++ b/etc/inc/ipsec.auth-user.php
@@ -102,7 +102,7 @@ if (!$username || !$password) {
return;
} else {
closelog();
- exit(-1);
+ return (-1);
}
}
@@ -116,7 +116,7 @@ if (($strictusercn === true) && ($common_name != $username)) {
return;
} else {
closelog();
- exit(1);
+ return (1);
}
}
@@ -148,7 +148,7 @@ if ($authenticated == false) {
return;
} else {
closelog();
- exit(-1);
+ return (-1);
}
}
@@ -161,6 +161,6 @@ closelog();
if (isset($_GET['username']))
echo "OK";
else
- exit(0);
+ return (0);
?>
OpenPOWER on IntegriCloud