summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2015-12-25 21:46:40 +0300
committerDmitry Kozlov <xeb@mail.ru>2015-12-25 21:46:40 +0300
commitb9054dd37340aceebddfba354922fc730e0607cf (patch)
tree0815dedec3909b587e1257beaabe37e53aa3d93c
parent44ae0ed6312dd2d6f81f01e2f66b70029f08e68f (diff)
downloadaccel-ppp-b9054dd37340aceebddfba354922fc730e0607cf.tar.gz
accel-ppp-b9054dd37340aceebddfba354922fc730e0607cf.zip
pptp,ipoe: fixed recursion bug
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c2
-rw-r--r--accel-pppd/ctrl/pptp/pptp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c
index 46f1cac..3cd2b80 100644
--- a/accel-pppd/ctrl/ipoe/ipoe.c
+++ b/accel-pppd/ctrl/ipoe/ipoe.c
@@ -199,7 +199,7 @@ static int ipoe_rad_send_acct_request(struct rad_plugin_t *rad, struct rad_packe
static void ipoe_ctx_switch(struct triton_context_t *ctx, void *arg)
{
net = &def_net;
- ipoe_ctx_switch(ctx, arg);
+ log_switch(ctx, arg);
}
static struct ipoe_session *ipoe_session_lookup(struct ipoe_serv *serv, struct dhcpv4_packet *pack, struct ipoe_session **opt82_ses)
diff --git a/accel-pppd/ctrl/pptp/pptp.c b/accel-pppd/ctrl/pptp/pptp.c
index 4a3090e..746badc 100644
--- a/accel-pppd/ctrl/pptp/pptp.c
+++ b/accel-pppd/ctrl/pptp/pptp.c
@@ -76,7 +76,7 @@ static void ppp_finished(struct ap_session *);
static void pptp_ctx_switch(struct triton_context_t *ctx, void *arg)
{
net = &def_net;
- pptp_ctx_switch(ctx, arg);
+ log_switch(ctx, arg);
}
static void disconnect(struct pptp_conn_t *conn)