aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-10-21 12:50:09 +0200
committerHarald Welte <laforge@gnumonks.org>2018-10-21 12:19:45 +0000
commit3c4661b5c883a98f1b84bedad212db45cd05b299 (patch)
tree3f9276e71208373bec376bbf51d448932b9bd3bc
parent60f08b57efcf0cb0747079cc04c4765a1ad27cdc (diff)
bssmap_handle_cipher_mode(): Don't sent reject if !conn
We can only send a reject response if we have a valid conn. Change-Id: I0ea535f494173ad4996c70dc82d7f69455e4e15e Fixes: Coverity CID#188824
-rw-r--r--src/osmo-bsc/osmo_bsc_bssap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bsc/osmo_bsc_bssap.c b/src/osmo-bsc/osmo_bsc_bssap.c
index 537b85168..a20d5d0ba 100644
--- a/src/osmo-bsc/osmo_bsc_bssap.c
+++ b/src/osmo-bsc/osmo_bsc_bssap.c
@@ -439,7 +439,7 @@ static int bssmap_handle_cipher_mode(struct gsm_subscriber_connection *conn,
if (!conn) {
LOGP(DMSC, LOGL_ERROR, "No lchan/msc_data in cipher mode command.\n");
- goto reject;
+ return -1;
}
if (conn->ciphering_handled) {