mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1323723: reject setup value actpass in answers. r=bwc
MozReview-Commit-ID: FnuiLB6OjbL --HG-- extra : rebase_source : c1e133d3e0baa056b2238b7ec9e96e1194c32506
This commit is contained in:
parent
d42d78db4e
commit
451faf7781
@ -2052,6 +2052,13 @@ JsepSessionImpl::ValidateAnswer(const Sdp& offer, const Sdp& answer)
|
||||
<< answerMsection.GetAttributeList().GetMid() << "\'");
|
||||
return NS_ERROR_INVALID_ARG;
|
||||
}
|
||||
|
||||
if (answerAttrs.HasAttribute(SdpAttribute::kSetupAttribute, true) &&
|
||||
answerAttrs.GetSetup().mRole == SdpSetupAttribute::kActpass) {
|
||||
JSEP_SET_ERROR("Answer contains illegal setup attribute \"actpass\""
|
||||
" at level " << i);
|
||||
return NS_ERROR_INVALID_ARG;
|
||||
}
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user