diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2013-07-19 20:09:27 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-07-19 20:09:27 +0400 |
commit | 18a593209b5329f042f85a44e446c5b245df473e (patch) | |
tree | c8839a4a08f0575050ff7915dbc7b34d4516671b /accel-pppd/ctrl/ipoe/ipoe.c | |
parent | 004db9a22bf2b860cc36f4a1c24d559136b11c82 (diff) | |
download | accel-ppp-18a593209b5329f042f85a44e446c5b245df473e.tar.gz accel-ppp-18a593209b5329f042f85a44e446c5b245df473e.zip |
ipoe: add missing EV_CTRL_FINISHED event firing
Diffstat (limited to 'accel-pppd/ctrl/ipoe/ipoe.c')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index f97c537..f605f2f 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -841,6 +841,8 @@ static void ipoe_session_finished(struct ap_session *s) if (ses->dhcpv4) dhcpv4_free(ses->dhcpv4); + + triton_event_fire(EV_CTRL_FINISHED, s); triton_context_call(&ses->ctx, (triton_event_func)ipoe_session_free, ses); } @@ -870,7 +872,7 @@ static struct ipoe_session *ipoe_session_create_dhcpv4(struct ipoe_serv *serv, s { struct ipoe_session *ses; int dlen = 0; - uint8_t *ptr; + uint8_t *ptr = NULL; ses = mempool_alloc(ses_pool); if (!ses) { |