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

Commit 18a1f9d6 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[CDM] Fixed an issue where SecureChannel would erroneously close upon...

Merge "[CDM] Fixed an issue where SecureChannel would erroneously close upon receiving a bad message rather than ignoring it. " into main
parents b36dfcc5 8f91cc45
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -251,7 +251,7 @@ public class SecureChannel {
        }
    }

    private void receiveSecureMessage() throws IOException, CryptoException {
    private void receiveSecureMessage() throws IOException {
        // Check if channel is secured. Trigger error callback. Let user handle it.
        if (!isSecured()) {
            Slog.d(TAG, "Received a message without a secure connection. "
@@ -263,7 +263,7 @@ public class SecureChannel {
        try {
            byte[] receivedMessage = readMessage(MessageType.SECURE_MESSAGE);
            mCallback.onSecureMessageReceived(receivedMessage);
        } catch (SecureChannelException e) {
        } catch (SecureChannelException | CryptoException e) {
            Slog.w(TAG, "Ignoring received message.", e);
        }
    }