aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2017-06-12 12:34:26 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-07-12 23:42:46 +0200
commit4b905cf141cd896edc605291c2a3e3abbd94a58b (patch)
tree01e9842995ec2836f5d1149f50c89d93d46d0368
parent2b3b4d407f8926fbb03168cdfaba879d2f57d3b6 (diff)
fixup: return with value in void function
-rw-r--r--src/libmsc/msc_ifaces.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libmsc/msc_ifaces.c b/src/libmsc/msc_ifaces.c
index e54f1e96..fdd5608d 100644
--- a/src/libmsc/msc_ifaces.c
+++ b/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;