mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Fix invalid access on nullptr" into main
This commit is contained in:
@@ -824,7 +824,7 @@ ErrMsgOr<bytevec> validateCertChain(const cppbor::Array& chain) {
|
||||
}
|
||||
if (i == chain.size() - 1) {
|
||||
auto key = getRawPublicKey(pubKey);
|
||||
if (!key) key.moveMessage();
|
||||
if (!key) return key.moveMessage();
|
||||
rawPubKey = key.moveValue();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user