Skip to content
Snippets Groups Projects
Commit 3fe5367c authored by Vladislav Shpilevoy's avatar Vladislav Shpilevoy
Browse files

raft: fix ignorance of bad state receipt

raft_process_msg() only validated that the state is specified. But
it didn't check if the state is inside of the allowed value range.

Such messages were considered valid, and even their other fields
were accepted. For instance, an invalid message could bump term.

It is safer to reject such messages.

Part of #5303
parent 2f5522dd
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment