From 696f8ca2fa29b950518525b2f20b4e9c6052ddfd Mon Sep 17 00:00:00 2001 From: zhihuang Date: Tue, 27 Jun 2017 15:11:24 -0700 Subject: [PATCH] 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} --- webrtc/p2p/client/basicportallocator.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webrtc/p2p/client/basicportallocator.cc b/webrtc/p2p/client/basicportallocator.cc index 549d013a25..2e5bc0d06c 100644 --- a/webrtc/p2p/client/basicportallocator.cc +++ b/webrtc/p2p/client/basicportallocator.cc @@ -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();