aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/bssap.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/src/bssap.c')
-rw-r--r--openbsc/src/bssap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/bssap.c b/openbsc/src/bssap.c
index 1d82ac6d1..a6a1d8028 100644
--- a/openbsc/src/bssap.c
+++ b/openbsc/src/bssap.c
@@ -424,6 +424,7 @@ static int handle_new_assignment(struct msgb *msg, int full_rate, int chan_mode)
if (rsl_chan_activate_lchan(new_lchan, 0x1, 0, 0) < 0) {
LOGP(DHO, LOGL_ERROR, "could not activate channel\n");
lchan_free(new_lchan);
+ return -1;
}
msc_data->secondary_lchan = new_lchan;