Fix 2 call-related crashes.

This commit is contained in:
Ghislain MARY 2017-11-27 16:43:09 +01:00
parent ca159350b8
commit 8a23ea59b7
2 changed files with 2 additions and 2 deletions

View file

@ -1049,7 +1049,7 @@ LinphoneCallState CallSession::getState () const {
string CallSession::getRemoteUserAgent () const {
L_D();
if (d->op)
if (d->op && d->op->get_remote_ua())
return d->op->get_remote_ua();
return string();
}

View file

@ -4317,7 +4317,7 @@ LinphoneStatus MediaSession::update (const MediaSessionParams *msp, const string
if (d->currentParams == msp)
lWarning() << "CallSession::update() is given the current params, this is probably not what you intend to do!";
d->iceAgent->checkSession(IR_Controlling, true);
if (d->params) {
if (msp) {
#if 0
call->broken = FALSE;
#endif