From 4ec8a390cce0a010c4140e283067f2a5149ab27b Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 7 Apr 2010 20:22:21 +0200 Subject: bssap: Another possible null derference on the code. We do not want to send a msg over the NULL lchan. Let us return fast from here. --- openbsc/src/bssap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbsc/src/bssap.c b/openbsc/src/bssap.c index bcaad3046..8517aee1f 100644 --- a/openbsc/src/bssap.c +++ b/openbsc/src/bssap.c @@ -473,7 +473,7 @@ static int bssmap_handle_assignm_req(struct sccp_connection *conn, if (!msg->lchan || !msg->lchan->msc_data) { DEBUGP(DMSC, "No lchan/msc_data in cipher mode command.\n"); - goto reject; + return -1; } msc_data = msg->lchan->msc_data; -- cgit v1.2.3