aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-10-18 15:25:55 +0000
committerErmal <eri@pfsense.org>2010-10-18 15:25:55 +0000
commitc11e08971fa6d1844670f75216fc8339eee73ee6 (patch)
tree09039d8127668d725fe461fb2845f46b0ec35968
parentc778f67ecca8215efdf9c9004f7cb979673fb5a4 (diff)
downloadpfsense-packages-c11e08971fa6d1844670f75216fc8339eee73ee6.tar.gz
pfsense-packages-c11e08971fa6d1844670f75216fc8339eee73ee6.tar.bz2
pfsense-packages-c11e08971fa6d1844670f75216fc8339eee73ee6.zip
Longest possible password is 8 chars on simple password schema. Reported-by: Remko Lodder
-rw-r--r--config/openospfd/openospfd.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/openospfd/openospfd.inc b/config/openospfd/openospfd.inc
index 332c671e..bea9bf20 100644
--- a/config/openospfd/openospfd.inc
+++ b/config/openospfd/openospfd.inc
@@ -128,7 +128,7 @@ function ospfd_install_conf() {
} else if (!empty($conf['password'])) {
$options_present = true;
$ifconfigs .= "\t\tauth-type simple\n";
- $ifconfigs .= "\t\tauth-key \"" . substr($conf['password'], 0, 7) . "\"\n";
+ $ifconfigs .= "\t\tauth-key \"" . substr($conf['password'], 0, 8) . "\"\n";
}
if (!empty($conf['routerpriorityelections'])) {
$options_present = true;
@@ -241,4 +241,4 @@ function ospfd_put_raw_config($conffile) {
}
}
-?> \ No newline at end of file
+?>