Verify local and remote transport description before

negotiation.

TBR=sergeyu@webrtc.org

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

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4756 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
mallinath@webrtc.org
2013-09-17 00:11:05 +00:00
parent f6ae62ffa3
commit b3af8aea3e

View File

@@ -92,6 +92,12 @@ class DtlsTransport : public Base {
}
virtual bool NegotiateTransportDescription_w(ContentAction local_role) {
if (!Base::local_description() || !Base::remote_description()) {
LOG(LS_INFO) << "Local and Remote description must be set before "
<< "transport descriptions are negotiated";
return false;
}
talk_base::SSLFingerprint* local_fp =
Base::local_description()->identity_fingerprint.get();
talk_base::SSLFingerprint* remote_fp =