[paging] Do not use request after it was was destroyed..

Increment the counter before we call the remove request
which is freeing the request...
This commit is contained in:
Holger Hans Peter Freyther
2010-04-08 16:48:46 +02:00
parent d4e7888ae3
commit 07d838a3bf

View File

@@ -208,11 +208,11 @@ static void paging_T3113_expired(void *data)
sig_data.lchan = NULL;
/* must be destroyed before calling cbfn, to prevent double free */
counter_inc(req->bts->network->stats.paging.expired);
cbfn_param = req->cbfn_param;
cbfn = req->cbfn;
paging_remove_request(&req->bts->paging, req);
counter_inc(req->bts->network->stats.paging.expired);
dispatch_signal(SS_PAGING, S_PAGING_EXPIRED, &sig_data);
if (cbfn)