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
diff --git a/talk/p2p/base/dtlstransport.h b/talk/p2p/base/dtlstransport.h
index 6bef185..641f572 100644
--- a/talk/p2p/base/dtlstransport.h
+++ b/talk/p2p/base/dtlstransport.h
@@ -49,7 +49,8 @@
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 59dfa0b..a8233a6 100644
--- a/talk/p2p/base/transportdescription.h
+++ b/talk/p2p/base/transportdescription.h
@@ -99,7 +99,9 @@
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,