Explicitly initialize the SctpTransportState to kNew

Bug: webrtc:15814
Change-Id: I94325979777741a2798e1bfac3474bcc364592bd
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/341020
Commit-Queue: Björn Terelius <terelius@webrtc.org>
Reviewed-by: Victor Boivie <boivie@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#41869}
This commit is contained in:
Bjorn Terelius 2024-02-29 16:22:01 +01:00 committed by WebRTC LUCI CQ
parent d055f77276
commit b41f07bc51

View file

@ -53,7 +53,7 @@ class RTC_EXPORT SctpTransportInformation {
absl::optional<int> MaxChannels() const { return max_channels_; }
private:
SctpTransportState state_;
SctpTransportState state_ = SctpTransportState::kNew;
rtc::scoped_refptr<DtlsTransportInterface> dtls_transport_;
absl::optional<double> max_message_size_;
absl::optional<int> max_channels_;