Index: talk/app/webrtc/statscollector.cc |
diff --git a/talk/app/webrtc/statscollector.cc b/talk/app/webrtc/statscollector.cc |
index 021234709dc2983af631f81db01df8db4ac18de5..6e2c950e22c0d956ff6dd5b687bb807746475297 100644 |
--- a/talk/app/webrtc/statscollector.cc |
+++ b/talk/app/webrtc/statscollector.cc |
@@ -734,10 +734,12 @@ void StatsCollector::ExtractSessionInfo() { |
channel_report->AddString(StatsReport::kStatsValueNameSrtpCipher, |
srtp_cipher); |
} |
- const std::string& ssl_cipher = channel_iter.ssl_cipher; |
- if (!ssl_cipher.empty()) { |
- channel_report->AddString(StatsReport::kStatsValueNameDtlsCipher, |
- ssl_cipher); |
+ uint16_t ssl_cipher = channel_iter.ssl_cipher; |
+ if (ssl_cipher && |
+ rtc::SSLStreamAdapter::GetSslCipherSuiteName(ssl_cipher).length()) { |
+ channel_report->AddString( |
+ StatsReport::kStatsValueNameDtlsCipher, |
+ rtc::SSLStreamAdapter::GetSslCipherSuiteName(ssl_cipher)); |
} |
int connection_id = 0; |