Skip to content

Commit

Permalink
GH-3 Fix use of iterator after erase
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Apr 17, 2024
1 parent 042ce30 commit d80def5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/chain/include/eosio/chain/vote_processor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class vote_processor_t {
return;
vote v = *i;
idx.erase(i);
auto bsp = get_block(i->msg->block_id, g);
auto bsp = get_block(v.msg->block_id, g);
// g is unlocked
if (bsp) {
vote_status s = bsp->aggregate_vote(*v.msg);
Expand Down

0 comments on commit d80def5

Please sign in to comment.