summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2013-04-16 07:31:21 +0000
committerYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2013-04-16 07:31:21 +0000
commit3780e5b4f5289810482231b4c6ddad6246050a65 (patch)
treea893a5c46e8533e9bfa090858f8296a6c868ae09
parent17fb6adfab7028bc9696d03fd60a42c3fde0e0c5 (diff)
Existing authentication realms are removed mistakenly when
the configuration is reloaded.
-rw-r--r--usr.sbin/npppd/npppd/npppd_config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/npppd/npppd/npppd_config.c b/usr.sbin/npppd/npppd/npppd_config.c
index 10cae9454e7..fa506471ab0 100644
--- a/usr.sbin/npppd/npppd/npppd_config.c
+++ b/usr.sbin/npppd/npppd/npppd_config.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: npppd_config.c,v 1.9 2012/09/18 13:14:08 yasuoka Exp $ */
+/* $OpenBSD: npppd_config.c,v 1.10 2013/04/16 07:31:20 yasuoka Exp $ */
/*-
* Copyright (c) 2009 Internet Initiative Japan Inc.
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
-/* $Id: npppd_config.c,v 1.9 2012/09/18 13:14:08 yasuoka Exp $ */
+/* $Id: npppd_config.c,v 1.10 2013/04/16 07:31:20 yasuoka Exp $ */
/*@file
* This file provides functions which operates configuration and so on.
*/
@@ -267,8 +267,8 @@ npppd_auth_realm_reload(npppd *_this)
"failed in %s(): %m", __func__);
goto fail;
}
- slist_add(&nrealms, auth_base);
}
+ slist_add(&nrealms, auth_base);
}
if (slist_set_size(&_this->realms, slist_length(&nrealms)) != 0) {
log_printf(LOG_WARNING, "slist_set_size() failed in %s(): %m",