summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/ipoe/ipoe.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/ctrl/ipoe/ipoe.c')
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c
index 46b6defb..b8aba6c9 100644
--- a/accel-pppd/ctrl/ipoe/ipoe.c
+++ b/accel-pppd/ctrl/ipoe/ipoe.c
@@ -1241,12 +1241,6 @@ static struct ipoe_session *ipoe_session_create_dhcpv4(struct ipoe_serv *serv, s
int dlen = 0;
uint8_t *ptr = NULL;
- if (ap_shutdown)
- return NULL;
-
- if (conf_max_sessions && ap_session_stat.active + ap_session_stat.starting > conf_max_sessions)
- return NULL;
-
ses = ipoe_session_alloc(serv->ifname);
if (!ses)
return NULL;
@@ -1890,9 +1884,6 @@ static struct ipoe_session *ipoe_session_create_up(struct ipoe_serv *serv, struc
if (ap_shutdown)
return NULL;
- if (conf_max_sessions && ap_session_stat.active + ap_session_stat.starting > conf_max_sessions)
- return NULL;
-
if (l4_redirect_list_check(saddr))
return NULL;