summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Xu <martin.xu@intel.com>2011-04-26 17:07:42 +0800
committerDenis Kenzior <denkenz@gmail.com>2011-04-26 14:47:11 -0500
commit0dc3d69c54b0b2b0b458e95a2e648ea999344dba (patch)
treeaf9007c5a3746ed11f20fe1be3cff1dd8f969b44
parentb60762e026734c9fad25ccb12e4fef72f662ed81 (diff)
downloadofono-0dc3d69c54b0b2b0b458e95a2e648ea999344dba.tar.bz2
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.
-rw-r--r--gatchat/ppp_cp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gatchat/ppp_cp.c b/gatchat/ppp_cp.c
index f0731cca..6e4a9c52 100644
--- a/gatchat/ppp_cp.c
+++ b/gatchat/ppp_cp.c
@@ -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);
}