| Index: talk/app/webrtc/webrtcsdp.cc
|
| diff --git a/talk/app/webrtc/webrtcsdp.cc b/talk/app/webrtc/webrtcsdp.cc
|
| index 60cc53966c660e55c9d0c67e72e03ef9dc28abe4..07a4eb92f494479691df646959c5d49350bfffa5 100644
|
| --- a/talk/app/webrtc/webrtcsdp.cc
|
| +++ b/talk/app/webrtc/webrtcsdp.cc
|
| @@ -1295,13 +1295,17 @@ void BuildMediaDescription(const ContentInfo* content_info,
|
| // ice-pwd-att = "ice-pwd" ":" password
|
| // ice-ufrag-att = "ice-ufrag" ":" ufrag
|
| // ice-ufrag
|
| - InitAttrLine(kAttributeIceUfrag, &os);
|
| - os << kSdpDelimiterColon << transport_info->description.ice_ufrag;
|
| - AddLine(os.str(), message);
|
| + if (!transport_info->description.ice_ufrag.empty()) {
|
| + InitAttrLine(kAttributeIceUfrag, &os);
|
| + os << kSdpDelimiterColon << transport_info->description.ice_ufrag;
|
| + AddLine(os.str(), message);
|
| + }
|
| // ice-pwd
|
| - InitAttrLine(kAttributeIcePwd, &os);
|
| - os << kSdpDelimiterColon << transport_info->description.ice_pwd;
|
| - AddLine(os.str(), message);
|
| + if (!transport_info->description.ice_pwd.empty()) {
|
| + InitAttrLine(kAttributeIcePwd, &os);
|
| + os << kSdpDelimiterColon << transport_info->description.ice_pwd;
|
| + AddLine(os.str(), message);
|
| + }
|
|
|
| // draft-petithuguenin-mmusic-ice-attributes-level-03
|
| BuildIceOptions(transport_info->description.transport_options, message);
|
|
|