summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2012-06-05 13:50:59 +0400
committerKozlov Dmitry <xeb@mail.ru>2012-06-05 13:50:59 +0400
commit6f01783f2b67cd0b82805240f2aeea9a39606d65 (patch)
tree7874a2a1aff3a8e4f45344cfe318ea43c9b21367
parentc3c3a5347e1e671ce4695168958dee5671f76534 (diff)
parent6291f589dfadaff7b3945877d8c83a27ff02f4ff (diff)
downloadaccel-ppp-6f01783f2b67cd0b82805240f2aeea9a39606d65.tar.gz
accel-ppp-6f01783f2b67cd0b82805240f2aeea9a39606d65.zip
Merge branch 'master' of ssh://accel-ppp.git.sourceforge.net/gitroot/accel-ppp/accel-ppp
-rw-r--r--accel-pppd/extra/ippool.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/accel-pppd/extra/ippool.c b/accel-pppd/extra/ippool.c
index f18aa05..fc4fd18 100644
--- a/accel-pppd/extra/ippool.c
+++ b/accel-pppd/extra/ippool.c
@@ -326,11 +326,16 @@ static void ippool_init(void)
list_for_each_entry(opt, &s->items, entry) {
#ifdef RADIUS
if (triton_module_loaded("radius")) {
- if (!strcmp(opt->name, "vendor"))
+ if (!strcmp(opt->name, "vendor")) {
conf_vendor = parse_vendor_opt(opt->val);
- else if (!strcmp(opt->name, "attr"))
+ continue;
+ }
+
+ if (!strcmp(opt->name, "attr")) {
conf_attr = parse_attr_opt(opt->val);
- } else
+ continue;
+ }
+ }
#endif
if (!strcmp(opt->name, "gw-ip-address"))
parse_gw_ip_address(opt->val);