* Change log_badlogins to use the mysql binary instead of the DBI module. That way...
[freeradius.git] / src / modules / rlm_ippool / rlm_ippool.c
index b26c8c3..b2c803c 100644 (file)
@@ -494,6 +494,10 @@ static int ippool_authorize(void *instance, REQUEST *request)
                data_datum = gdbm_fetch(data->gdbm, key_datum);
                memcpy(&entry,data_datum.dptr, sizeof(ippool_info));
                free(data_datum.dptr);  
+               /*
+                * If we find an entry for the same caller-id and nas with active=0
+                * then we use that for multilink (MPPP) to work properly.
+                */
                if (cli != NULL && strcmp(entry.cli,cli) == 0 && entry.active){
                        memcpy(&key,key_datum.dptr,sizeof(ippool_key));
                        if (key.nas == nas)