gatppp: Fix crash related to not stopping timers

In case of offline modem when GPRS data connection is connected, if gprs
atom is removed before PPP termination process is complete, the terminate_timer
will not be stop. It will cause ofonod crash when the timer times out.
This commit is contained in:
Martin Xu 2011-04-26 17:07:42 +08:00 committed by Denis Kenzior
parent b60762e026
commit 0dc3d69c54
1 changed files with 2 additions and 0 deletions

View File

@ -970,6 +970,8 @@ void pppcp_process_packet(gpointer priv, const guint8 *new_packet)
void pppcp_free(struct pppcp_data *pppcp)
{
pppcp_stop_timer(&pppcp->config_timer_data);
pppcp_stop_timer(&pppcp->terminate_timer_data);
g_free(pppcp->peer_options);
g_free(pppcp);
}