diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-01-16 18:18:56 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-01-16 20:31:59 +0100 |
commit | 3fbd2441879cf72a8d08130455c498e29afbfe9c (patch) | |
tree | a3e44f11986bc6be4701c70d1a8a62f82d56d252 /openbsc | |
parent | b549ddfb04a6f7f4da5ccaab7e920593e71d2122 (diff) |
bsc: Initialize the subscr to NULL in the default case
The paging response should always have a TMSI or IMSI
and we should be able to find the subscriber using that. If
no IMSI/TMSI is present and we would still accept the LU
we would access the uninitialized memory.
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/src/bsc/osmo_bsc_filter.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/src/bsc/osmo_bsc_filter.c b/openbsc/src/bsc/osmo_bsc_filter.c index e222ac955..d2735a63a 100644 --- a/openbsc/src/bsc/osmo_bsc_filter.c +++ b/openbsc/src/bsc/osmo_bsc_filter.c @@ -83,6 +83,9 @@ static int handle_page_resp(struct gsm_subscriber_connection *conn, struct msgb case GSM_MI_TYPE_IMSI: subscr = subscr_active_by_imsi(conn->bts->network, mi_string); break; + default: + subscr = NULL; + break; } if (!subscr) { |