summaryrefslogtreecommitdiffstats
path: root/etc/inc/auth.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-15 03:18:34 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-15 03:18:34 +0000
commit3e789a8b1385cbd0ccc952b7eac5e1e01ff1a478 (patch)
treec7c708f47d6ce9bcea8c7a23fbabb4fe620b7278 /etc/inc/auth.inc
parent0831bc8616b85859751d9c30f35030dd35cb3a22 (diff)
downloadpfsense-3e789a8b1385cbd0ccc952b7eac5e1e01ff1a478.zip
pfsense-3e789a8b1385cbd0ccc952b7eac5e1e01ff1a478.tar.gz
* Eliminate dead code
* Fix warnings and errors found by eclipse
Diffstat (limited to 'etc/inc/auth.inc')
-rw-r--r--etc/inc/auth.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index b9d1d6b..0306a53 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -65,7 +65,8 @@ function passwd_backed_basic_auth() {
continue;
/* Get crypted password */
- preg_match("/^$username:((\\$1\\$[.\d\w_\/]{8}\\$)[.\d\w_\/]{22})$/", $line, $matches);
+ $matches = "";
+ preg_match("/^$username:((\\$1\\$[.\d\w_\/]{8}\\$)[.\d\w_\/]{22})$/", $line, $matches);
$pass = $matches[1];
$salt = $matches[2];
@@ -108,6 +109,7 @@ function htpasswd_backed_basic_auth() {
continue;
/* Get crypted password */
+ $matches = "";
preg_match("/^$username:((\\$1\\$[.\d\w_\/]{8}\\$)[.\d\w_\/]{22})$/", $line, $matches);
$pass = $matches[1];
$salt = $matches[2];
OpenPOWER on IntegriCloud