Fix invalid read in quality reporting if call was already released

This commit is contained in:
Gautier Pelloux-Prayer 2014-09-09 10:08:27 +02:00
parent b34d5bd992
commit 95c0834556

View file

@ -654,7 +654,7 @@ int linphone_reporting_publish_interval_report(LinphoneCall* call) {
void linphone_reporting_call_state_updated(LinphoneCall *call){
LinphoneCallState state=linphone_call_get_state(call);
if (! quality_reporting_enabled(call)){
if (state == LinphoneCallReleased||!quality_reporting_enabled(call)){
return;
}
switch (state){