diff --git a/talk/p2p/base/dtlstransport.h b/talk/p2p/base/dtlstransport.h index 6bef185ce8..641f57275d 100644 --- a/talk/p2p/base/dtlstransport.h +++ b/talk/p2p/base/dtlstransport.h @@ -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() { diff --git a/talk/p2p/base/transportdescription.h b/talk/p2p/base/transportdescription.h index 59dfa0b47d..a8233a61f3 100644 --- a/talk/p2p/base/transportdescription.h +++ b/talk/p2p/base/transportdescription.h @@ -99,7 +99,9 @@ bool ConnectionRoleToString(const ConnectionRole& role, std::string* role_str); typedef std::vector 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& transport_options,