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

Commit fb06985f authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "InternalEnforceSecurityPolicy: Check if record is temporary"

parents b0060726 590963da
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -720,7 +720,7 @@ void SecurityManagerImpl::InternalEnforceSecurityPolicy(
  switch (policy) {
    case l2cap::classic::SecurityPolicy::BEST:
    case l2cap::classic::SecurityPolicy::AUTHENTICATED_ENCRYPTED_TRANSPORT:
      if (!record->IsPaired()) {
      if (!record->IsPaired() || record->IsTemporary()) {
        need_to_pair = true;
      } else if (record->IsAuthenticated()) {
        // if paired with MITM, only encryption is missing, so we just need to wait for encryption change callback