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

Commit a677e932 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[AWARE] Passphrase limit check used incorrect limit"

parents 4a1461ea fed081c7
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1125,7 +1125,7 @@ bool convertHidlNanPublishRequestToLegacy(
      return false;
    }
    if (legacy_request->key_info.body.passphrase_info.passphrase_len
            > NAN_SECURITY_MIN_PASSPHRASE_LEN) {
            > NAN_SECURITY_MAX_PASSPHRASE_LEN) {
      LOG(ERROR) << "convertHidlNanPublishRequestToLegacy: passphrase_len too large";
      return false;
    }
@@ -1241,7 +1241,7 @@ bool convertHidlNanSubscribeRequestToLegacy(
      return false;
    }
    if (legacy_request->key_info.body.passphrase_info.passphrase_len
            > NAN_SECURITY_MIN_PASSPHRASE_LEN) {
            > NAN_SECURITY_MAX_PASSPHRASE_LEN) {
      LOG(ERROR) << "convertHidlNanSubscribeRequestToLegacy: passphrase_len too large";
      return false;
    }
@@ -1465,7 +1465,7 @@ bool convertHidlNanDataPathInitiatorRequestToLegacy(
      return false;
    }
    if (legacy_request->key_info.body.passphrase_info.passphrase_len
            > NAN_SECURITY_MIN_PASSPHRASE_LEN) {
            > NAN_SECURITY_MAX_PASSPHRASE_LEN) {
      LOG(ERROR) << "convertHidlNanDataPathInitiatorRequestToLegacy: passphrase_len too large";
      return false;
    }
@@ -1529,7 +1529,7 @@ bool convertHidlNanDataPathIndicationResponseToLegacy(
      return false;
    }
    if (legacy_request->key_info.body.passphrase_info.passphrase_len
            > NAN_SECURITY_MIN_PASSPHRASE_LEN) {
            > NAN_SECURITY_MAX_PASSPHRASE_LEN) {
      LOG(ERROR) << "convertHidlNanDataPathIndicationResponseToLegacy: passphrase_len too large";
      return false;
    }