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:
@@ -92,6 +92,12 @@ class DtlsTransport : public Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
virtual bool NegotiateTransportDescription_w(ContentAction local_role) {
|
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 =
|
talk_base::SSLFingerprint* local_fp =
|
||||||
Base::local_description()->identity_fingerprint.get();
|
Base::local_description()->identity_fingerprint.get();
|
||||||
talk_base::SSLFingerprint* remote_fp =
|
talk_base::SSLFingerprint* remote_fp =
|
||||||
|
Reference in New Issue
Block a user