aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-08 16:48:46 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-08 16:48:46 +0200
commit414ba77f75c186525b41400f555b7226b5d45540 (patch)
tree481b3e5fb4fcba2a9ebcdd1e048dac50de1c8a3c
parent59f2470650ae7fefed3d7313aebe17acc8a59494 (diff)
[paging] Do not use request after it was was destroyed..
Increment the counter before we call the remove request which is freeing the request...
-rw-r--r--openbsc/src/paging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/paging.c b/openbsc/src/paging.c
index 9c978bee6..3d16a21fb 100644
--- a/openbsc/src/paging.c
+++ b/openbsc/src/paging.c
@@ -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)