Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f47f72d4 authored by Myles Watson's avatar Myles Watson
Browse files

Revert "le_impl: Clean up initializer list"

This reverts commit e762d380.

Reason for revert: Use after free in cert tests

Change-Id: Ic8f268abf7642b7f9db1ec88065010a2f997e124
parent ef224f94
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -65,9 +65,11 @@ struct le_impl : public bluetooth::hci::LeAddressManagerCallback {
      bool crash_on_unknown_handle)
      bool crash_on_unknown_handle)
      : hci_layer_(hci_layer),
      : hci_layer_(hci_layer),
        controller_(controller),
        controller_(controller),
        handler_(handler),
        round_robin_scheduler_(round_robin_scheduler),
        round_robin_scheduler_(round_robin_scheduler),
        crash_on_unknown_handle_(crash_on_unknown_handle) {
        crash_on_unknown_handle_(crash_on_unknown_handle) {
    hci_layer_ = hci_layer;
    controller_ = controller;
    handler_ = handler;
    le_acl_connection_interface_ = hci_layer_->GetLeAclConnectionInterface(
    le_acl_connection_interface_ = hci_layer_->GetLeAclConnectionInterface(
        handler_->BindOn(this, &le_impl::on_le_event),
        handler_->BindOn(this, &le_impl::on_le_event),
        handler_->BindOn(this, &le_impl::on_le_disconnect),
        handler_->BindOn(this, &le_impl::on_le_disconnect),