aboutsummaryrefslogtreecommitdiffstats
path: root/src/mncc.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-03-31 19:36:27 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-03-31 19:36:27 +0200
commitbec32eb2073a5ae669260a7634bd91a245ce3e30 (patch)
tree1a5b565b839be84576fff94a3c0884e77c67f8bb /src/mncc.c
parentadc7484a0c65caf01278759804535e4072e27fa2 (diff)
coverity: Address two issues found by coverity
Add NULL check in the case of MNCC disconnect that was missing and add an assert to show that at this point the other leg must exist. Fixes: CID#80799, CID#80800, 80801
Diffstat (limited to 'src/mncc.c')
-rw-r--r--src/mncc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mncc.c b/src/mncc.c
index c25672d..84dac1d 100644
--- a/src/mncc.c
+++ b/src/mncc.c
@@ -167,6 +167,7 @@ static void mncc_call_leg_connect(struct call_leg *_leg)
leg = (struct mncc_call_leg *) _leg;
other = call_leg_other(_leg);
+ OSMO_ASSERT(other);
if (!send_rtp_connect(leg, other))
return;