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

Commit 30b0bbd4 authored by Josh Gao's avatar Josh Gao
Browse files

adb: avoid crash when authenticating without vendor keys.

Bug: http://b/158232136
Test: manual
Change-Id: Ic8211335494a6acb703af5b82f52856223f538bb
parent 8d326553
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -1533,8 +1533,7 @@ std::shared_ptr<RSA> atransport::NextKey() {
        keys_.pop_front();
        keys_.pop_front();
    }
    }


    std::shared_ptr<RSA> result = keys_[0];
    return Key();
    return result;
}
}


void atransport::ResetKeys() {
void atransport::ResetKeys() {