From 8a7ca57d3eec7376169661ea3cfcca4c3c2f33cf Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 24 Mar 2010 09:59:20 +0100 Subject: bssap.c: Handle an assignment failure correctly This method should return !0 in case of an failure so we can send an assignment reject right away. --- openbsc/src/bssap.c | 1 + 1 file changed, 1 insertion(+) (limited to 'openbsc/src/bssap.c') 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; -- cgit v1.2.3