MT#55283 Reject OSRTP answer when not offered

Closes #1854

Change-Id: I3020166b67005b0ecf7970104dbecb36885b021e
rfuchs/fixes
Morten Tryfoss 1 year ago committed by Richard Fuchs
parent ee2e976b08
commit 42e52fd1d6

@ -2359,8 +2359,12 @@ static void __update_media_protocol(struct call_media *media, struct call_media
media->protocol = NULL; // reject
}
// pass through any other protocol change?
else if (!flags->protocol_accept)
;
else if (!flags->protocol_accept) {
if (media->protocol && sp->protocol && !media->protocol->osrtp && sp->protocol->osrtp) {
ilog(LOG_WARNING, "Ignore OSRTP answer since this was not offered");
other_media->protocol = media->protocol;
}
}
else
media->protocol = NULL;
}

Loading…
Cancel
Save