adb: avoid crash when authenticating without vendor keys.

Bug: http://b/158232136
Test: manual
Change-Id: Ic8211335494a6acb703af5b82f52856223f538bb
This commit is contained in:
Josh Gao 2020-06-11 21:07:27 -07:00
parent 8d3265539b
commit 30b0bbd4a2
1 changed files with 1 additions and 2 deletions

View File

@ -1533,8 +1533,7 @@ std::shared_ptr<RSA> atransport::NextKey() {
keys_.pop_front();
}
std::shared_ptr<RSA> result = keys_[0];
return result;
return Key();
}
void atransport::ResetKeys() {