Index: webrtc/api/webrtcsdp.cc |
diff --git a/webrtc/api/webrtcsdp.cc b/webrtc/api/webrtcsdp.cc |
index e19840bdf2f94a417d049b01a0f0a620d8bc9aa0..c79c851c3a1465e2ad2d4d46047e46535cba1bc1 100644 |
--- a/webrtc/api/webrtcsdp.cc |
+++ b/webrtc/api/webrtcsdp.cc |
@@ -2676,6 +2676,12 @@ bool ParseContent(const std::string& message, |
if (!ParseCandidate(line, &candidate, error, false)) { |
return false; |
} |
+ // ParseCandidate will parse non-standard ufrag and password attributes, |
+ // since it's used for candidate trickling, but we only want to process |
+ // the "a=ice-ufrag"/"a=ice-pwd" values in a session description, so |
+ // strip them off at this point. |
+ candidate.set_username(std::string()); |
+ candidate.set_password(std::string()); |
candidates_orig.push_back(candidate); |
} else if (HasAttribute(line, kAttributeIceUfrag)) { |
if (!GetValue(line, kAttributeIceUfrag, &transport->ice_ufrag, error)) { |