Index: webrtc/p2p/base/dtlstransportchannel.cc |
diff --git a/webrtc/p2p/base/dtlstransportchannel.cc b/webrtc/p2p/base/dtlstransportchannel.cc |
index bbf3e5c484b0302672ea889665ec4ec0ac285134..33b5b6f268e6cbc298f170b8504ca422116939d2 100644 |
--- a/webrtc/p2p/base/dtlstransportchannel.cc |
+++ b/webrtc/p2p/base/dtlstransportchannel.cc |
@@ -234,7 +234,7 @@ bool DtlsTransportChannelWrapper::SetRemoteFingerprint( |
remote_fingerprint_value_ = std::move(remote_fingerprint_value); |
remote_fingerprint_algorithm_ = digest_alg; |
- bool reconnect = dtls_; |
+ bool reconnect = (dtls_ != nullptr); |
if (!SetupDtls()) { |
set_dtls_state(DTLS_TRANSPORT_FAILED); |