Skip to content

Commit

Permalink
Cherry-pick 273738@main (5201724). https://bugs.webkit.org/show_bug.c…
Browse files Browse the repository at this point in the history
…gi?id=268258

    webrtc::SctpTransportInformation::state_ is not initialized in default constructor
    https://bugs.webkit.org/show_bug.cgi?id=268258
    <rdar://121811341>

    Reviewed by Youenn Fablet.

    * Source/ThirdParty/libwebrtc/Source/webrtc/api/sctp_transport_interface.h:
    (webrtc::SctpTransportInformation):
    - Initialize state_ to SctpTransportState::kNew.

    Canonical link: https://commits.webkit.org/273738@main

Canonical link: https://commits.webkit.org/266719.355@webkitglib/2.42
  • Loading branch information
David Kilzer authored and aperezdc committed Mar 14, 2024
1 parent ccb347d commit d121f66
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class RTC_EXPORT SctpTransportInformation {
absl::optional<int> MaxChannels() const { return max_channels_; }

private:
SctpTransportState state_;
SctpTransportState state_ { SctpTransportState::kNew }; // WEBRTC_WEBKIT_BUILD
rtc::scoped_refptr<DtlsTransportInterface> dtls_transport_;
absl::optional<double> max_message_size_;
absl::optional<int> max_channels_;
Expand Down

0 comments on commit d121f66

Please sign in to comment.