From c11e08971fa6d1844670f75216fc8339eee73ee6 Mon Sep 17 00:00:00 2001 From: Ermal Date: Mon, 18 Oct 2010 15:25:55 +0000 Subject: Longest possible password is 8 chars on simple password schema. Reported-by: Remko Lodder --- config/openospfd/openospfd.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/openospfd') 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 +?> -- cgit v1.2.3