Fix slice length (#22989)

This commit is contained in:
Jack May 2022-02-07 13:54:20 -08:00 committed by GitHub
parent b2e475b5c4
commit d7fcfee4db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3077,7 +3077,7 @@ impl<'a, 'b> SyscallObject<BpfError> for SyscallGetProcessedSiblingInstruction<'
result
);
if *data_len >= instruction_context.get_instruction_data().len()
if *data_len == instruction_context.get_instruction_data().len()
&& *accounts_len == instruction_context.get_number_of_instruction_accounts()
{
let program_id = question_mark!(