commit | 30b0bbd4a287994e0e4816483eb410115f781e39 | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Thu Jun 11 21:07:27 2020 -0700 |
committer | Josh Gao <jmgao@google.com> | Thu Jun 11 21:31:09 2020 -0700 |
tree | 7b365a180ee2db8836523f9af1c84558464b5743 | |
parent | 8d3265539b0c1781fd15dc91a934a8a288cee302 [diff] |
adb: avoid crash when authenticating without vendor keys. Bug: http://b/158232136 Test: manual Change-Id: Ic8211335494a6acb703af5b82f52856223f538bb
diff --git a/adb/transport.cpp b/adb/transport.cpp index b6b6984..c33d5af 100644 --- a/adb/transport.cpp +++ b/adb/transport.cpp
@@ -1533,8 +1533,7 @@ keys_.pop_front(); } - std::shared_ptr<RSA> result = keys_[0]; - return result; + return Key(); } void atransport::ResetKeys() {