aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-07 15:37:33 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-07 15:37:33 +0200
commit984f3b8047ba29dea8c1077721eef0e07a12ed8f (patch)
tree6ebce7e1ecc6c7964be89d8e8595a5222b091983
parentec1f15d513016565eae8678612aa5e38c078cca5 (diff)
bssap: Speculative crash fix.
-rw-r--r--openbsc/src/bssap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/bssap.c b/openbsc/src/bssap.c
index ec20341aa..bcaad3046 100644
--- a/openbsc/src/bssap.c
+++ b/openbsc/src/bssap.c
@@ -280,7 +280,7 @@ static int bssmap_handle_cipher_mode(struct sccp_connection *conn,
return gsm48_send_rr_ciph_mode(msg->lchan, include_imeisv);
reject:
- if (msg->lchan->msc_data)
+ if (msg->lchan && msg->lchan->msc_data)
msg->lchan->msc_data->block_gsm = 0;
resp = bssmap_create_cipher_reject(reject_cause);