diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-12-26 20:34:26 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-12-26 21:19:29 +0100 |
commit | 9d3e2ec6985b85d8ef763d3cae5de43deffb03c9 (patch) | |
tree | d5818b3bf9bc225baa921c2ea705e9365a21ac10 /openbsc/src | |
parent | c839667324a1b27af7ad23c2d57ca78d35c2581d (diff) |
ho: Access the network after we are known to have an entry.
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/handover_logic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/src/handover_logic.c b/openbsc/src/handover_logic.c index 2cef2c4ad..38bb32ea2 100644 --- a/openbsc/src/handover_logic.c +++ b/openbsc/src/handover_logic.c @@ -246,7 +246,7 @@ static int ho_chan_activ_nack(struct gsm_lchan *new_lchan) /* GSM 04.08 HANDOVER COMPLETE has been received on new channel */ static int ho_gsm48_ho_compl(struct gsm_lchan *new_lchan) { - struct gsm_network *net = new_lchan->ts->trx->bts->network; + struct gsm_network *net; struct bsc_handover *ho; ho = bsc_ho_by_new_lchan(new_lchan); @@ -255,6 +255,7 @@ static int ho_gsm48_ho_compl(struct gsm_lchan *new_lchan) return -ENODEV; } + net = new_lchan->ts->trx->bts->network; LOGP(DHO, LOGL_INFO, "Subscriber %s HO from BTS %u->%u on ARFCN " "%u->%u\n", subscr_name(ho->old_lchan->conn->subscr), ho->old_lchan->ts->trx->bts->nr, new_lchan->ts->trx->bts->nr, |