mirror of git://git.sysmocom.de/ofono
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:
parent
b60762e026
commit
0dc3d69c54
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue