summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2017-06-12 12:34:26 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-06-18 17:50:09 +0200
commit7d98e0058c2fadab7fc139000a5987e1b95cfe56 (patch)
tree2025252d37b3f885a3ae4fb44ca52f60747a60d9
parent39f3b1109d4b3463b44ac7b3401a03a16166edba (diff)
fixup: return with value in void function
-rw-r--r--openbsc/src/libmsc/msc_ifaces.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/src/libmsc/msc_ifaces.c b/openbsc/src/libmsc/msc_ifaces.c
index e54f1e9..fdd5608 100644
--- a/openbsc/src/libmsc/msc_ifaces.c
+++ b/openbsc/src/libmsc/msc_ifaces.c
@@ -180,7 +180,8 @@ static void mgcp_response_rab_act_cs_crcx(struct mgcp_response *r, void *priv)
/* use_x213_nsap == 0 for ip.access nano3G */
} else if (trans->conn->via_ran == RAN_GERAN_A) {
/* Assign a voice channel via A on 2G */
- return a_assign(trans);
+ if (a_assign(trans) == -EINVAL)
+ goto rab_act_cs_error;
} else
goto rab_act_cs_error;