Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

double null pointer with diffrent error codes #41

Closed
skorokhod opened this issue Jun 21, 2017 · 1 comment
Closed

double null pointer with diffrent error codes #41

skorokhod opened this issue Jun 21, 2017 · 1 comment

Comments

@skorokhod
Copy link

function raft_recv_appendentries_response contains 2 checks about null pointer node with different error codes but it's not clear witch one should be used:
`
if (!node)
return -1;

...
/* stop processing, this is a node we don't have in our configuration */
if (!node)
return 0;
`

May be the second check is redundant?

@willemt
Copy link
Owner

willemt commented Jun 21, 2017

thanks this has been fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants