aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2009-06-12 01:54:08 +0800
committerHarald Welte <laforge@gnumonks.org>2009-06-12 01:54:08 +0800
commit92f70c577393feba97d6dcf8c1ce5e37571f85d9 (patch)
tree63775db0c7ec9f128d2cb0b4a3369b90df702f62 /openbsc
parenta718780253cb2b76d4eb7d70dfeff3e83f5c68cc (diff)
04.08: Make mncc-harald branch work
This fixes two reasons for crashes due to uninitialized memory or wrong pointer passing introduced in my own mncc modifications
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/gsm_04_08.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/gsm_04_08.c b/openbsc/src/gsm_04_08.c
index 367f7fa7..d5f12de7 100644
--- a/openbsc/src/gsm_04_08.c
+++ b/openbsc/src/gsm_04_08.c
@@ -1865,7 +1865,7 @@ int mncc_release_ind(struct gsm_network *net, struct gsm_trans *trans,
{
struct gsm_mncc rel;
- memset(&rel, 0, sizeof(&rel));
+ memset(&rel, 0, sizeof(rel));
rel.callref = callref;
mncc_set_cause(&rel, GSM48_CAUSE_LOC_PRN_S_LU,
GSM48_CC_CAUSE_UNASSIGNED_NR);
@@ -3457,7 +3457,7 @@ int mncc_send(struct gsm_network *net, int msg_type, void *arg)
bts->nr, data->called.number,
get_mncc_name(msg_type));
/* Trigger paging */
- paging_request(bts, subscr, RSL_CHANNEED_TCH_F,
+ paging_request(net, subscr, RSL_CHANNEED_TCH_F,
setup_trig_pag_evt, subscr);
} while (1);
return 0;