diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-24 09:59:20 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-24 10:27:04 +0100 |
commit | 8a7ca57d3eec7376169661ea3cfcca4c3c2f33cf (patch) | |
tree | 7c6b5a70c4fe06b705247e5a4b3d62c40aad4ac8 /openbsc/src/bssap.c | |
parent | 29f9f9fc79cb7e35fb9f872484ca03648576c664 (diff) |
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.
Diffstat (limited to 'openbsc/src/bssap.c')
-rw-r--r-- | openbsc/src/bssap.c | 1 |
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; |