diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-03-31 19:36:27 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-03-31 19:36:27 +0200 |
commit | bec32eb2073a5ae669260a7634bd91a245ce3e30 (patch) | |
tree | 1a5b565b839be84576fff94a3c0884e77c67f8bb /src/mncc.c | |
parent | adc7484a0c65caf01278759804535e4072e27fa2 (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |