Handle the PROTO_TSL when getting the protocol priority.

This bug breaks the internal project.

TBR=deadbeef@webrtc.org, pthacher@webrtc.org
BUG=webrtc:7889

Review-Url: https://codereview.webrtc.org/2959993002
Cr-Commit-Position: refs/heads/master@{#18792}
This commit is contained in:
zhihuang 2017-06-27 15:11:24 -07:00 committed by Commit Bot
parent a7d0df7ac1
commit 696f8ca2fa

View File

@ -47,7 +47,7 @@ const int PHASE_SSLTCP = 3;
const int kNumPhases = 4;
// Gets protocol priority: UDP > TCP > SSLTCP.
// Gets protocol priority: UDP > TCP > SSLTCP == TLS.
int GetProtocolPriority(cricket::ProtocolType protocol) {
switch (protocol) {
case cricket::PROTO_UDP:
@ -55,6 +55,7 @@ int GetProtocolPriority(cricket::ProtocolType protocol) {
case cricket::PROTO_TCP:
return 1;
case cricket::PROTO_SSLTCP:
case cricket::PROTO_TLS:
return 0;
default:
RTC_NOTREACHED();