Fix uninitialized value in DtlsTransport and TransportDescription.

BUG=crbug/390304
R=wu@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/21779004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@6577 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
jiayl@webrtc.org 2014-07-01 18:33:07 +00:00
parent 08564546cb
commit 974bbbb352
2 changed files with 5 additions and 2 deletions

View File

@ -49,7 +49,8 @@ class DtlsTransport : public Base {
PortAllocator* allocator,
talk_base::SSLIdentity* identity)
: Base(signaling_thread, worker_thread, content_name, allocator),
identity_(identity) {
identity_(identity),
secure_role_(talk_base::SSL_CLIENT) {
}
~DtlsTransport() {

View File

@ -99,7 +99,9 @@ bool ConnectionRoleToString(const ConnectionRole& role, std::string* role_str);
typedef std::vector<Candidate> Candidates;
struct TransportDescription {
TransportDescription() : ice_mode(ICEMODE_FULL) {}
TransportDescription()
: ice_mode(ICEMODE_FULL),
connection_role(CONNECTIONROLE_NONE) {}
TransportDescription(const std::string& transport_type,
const std::vector<std::string>& transport_options,