| Index: webrtc/api/webrtcsdp.cc
|
| diff --git a/webrtc/api/webrtcsdp.cc b/webrtc/api/webrtcsdp.cc
|
| index b700d8550e78c4aed316f6f4aab9bee10025d51a..f0e94b62210e2962c039274ee49942b28db75b41 100644
|
| --- a/webrtc/api/webrtcsdp.cc
|
| +++ b/webrtc/api/webrtcsdp.cc
|
| @@ -1034,10 +1034,18 @@ bool ParseCandidate(const std::string& message, Candidate* candidate,
|
| SocketAddress address(connection_address, port);
|
|
|
| cricket::ProtocolType protocol;
|
| - if (!StringToProto(transport.c_str(), &protocol) ||
|
| - protocol == cricket::PROTO_TLS) {
|
| + if (!StringToProto(transport.c_str(), &protocol)) {
|
| return ParseFailed(first_line, "Unsupported transport type.", error);
|
| }
|
| + switch (protocol) {
|
| + case cricket::PROTO_UDP:
|
| + case cricket::PROTO_TCP:
|
| + case cricket::PROTO_SSLTCP:
|
| + // Supported protocol.
|
| + break;
|
| + default:
|
| + return ParseFailed(first_line, "Unsupported transport type.", error);
|
| + }
|
|
|
| std::string candidate_type;
|
| const std::string& type = fields[7];
|
|
|