Bug 1323723: reject setup value actpass in answers. r=bwc

MozReview-Commit-ID: FnuiLB6OjbL

--HG--
extra : rebase_source : c1e133d3e0baa056b2238b7ec9e96e1194c32506
This commit is contained in:
Nils Ohlmeier [:drno] 2017-03-13 21:38:25 -07:00
parent d42d78db4e
commit 451faf7781

View File

@ -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;