Skip to content

Commit

Permalink
Merge pull request #5454 from filecoin-project/fix/messagepool-may-pa…
Browse files Browse the repository at this point in the history
…nic-caused-by-access-nil-pointer

fix: message pool may panic caused by access a nil pointer
  • Loading branch information
hunjixin authored Nov 7, 2022
2 parents 908a4af + 931c8e1 commit c53c9f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/messagepool/messagepool.go
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ func (mp *MessagePool) DeleteByAdress(address address.Address) error {
defer mp.lk.Unlock()

if mp.pending != nil {
mp.pending[address] = nil
delete(mp.pending, address)
}
return nil
}
Expand Down

0 comments on commit c53c9f9

Please sign in to comment.