From 94df14b2494ab3076be8d14e75143bc624c48445 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grisez?= Date: Tue, 10 May 2016 16:03:18 +0200 Subject: [PATCH] Fixes crash when the call fails in video_call_disable_implicit_AVPF_on_callee() tester --- tester/call_tester.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tester/call_tester.c b/tester/call_tester.c index 09c99a154..2d2bbfd71 100644 --- a/tester/call_tester.c +++ b/tester/call_tester.c @@ -2389,14 +2389,17 @@ static void video_call_disable_implicit_AVPF_on_callee(void) { lp_config_set_int(callee_lp,"rtp","rtcp_fb_implicit_rtcp_fb",0); video_call_base_3(caller,callee,TRUE,LinphoneMediaEncryptionNone,TRUE,TRUE); - params = linphone_call_get_current_params(linphone_core_get_current_call(callee->lc)); - BC_ASSERT_STRING_EQUAL(linphone_call_params_get_rtp_profile(params), "RTP/AVP"); - params2 =linphone_call_get_current_params(linphone_core_get_current_call(caller->lc)); - BC_ASSERT_STRING_EQUAL(linphone_call_params_get_rtp_profile(params2), "RTP/AVP"); + if(BC_ASSERT_PTR_NOT_NULL(linphone_core_get_current_call(callee->lc))) { + params = linphone_call_get_current_params(linphone_core_get_current_call(callee->lc)); + BC_ASSERT_STRING_EQUAL(linphone_call_params_get_rtp_profile(params), "RTP/AVP"); + } + if(BC_ASSERT_PTR_NOT_NULL(linphone_core_get_current_call(caller->lc))) { + params2 =linphone_call_get_current_params(linphone_core_get_current_call(caller->lc)); + BC_ASSERT_STRING_EQUAL(linphone_call_params_get_rtp_profile(params2), "RTP/AVP"); + } end_call(caller, callee); linphone_core_manager_destroy(callee); linphone_core_manager_destroy(caller); - }