Skip to content

Commit

Permalink
dispatcher: test len for matching all token in setting the state via rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Jan 15, 2018
1 parent 9c6436b commit 27fdee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/dispatcher/dispatcher.c
Expand Up @@ -1360,7 +1360,7 @@ static void dispatcher_rpc_set_state(rpc_t *rpc, void *ctx)
return;
}

if(strcmp(dest.s, "all") == 0) {
if(dest.len == 3 && strncmp(dest.s, "all", 3) == 0) {
ds_reinit_state_all(group, stval);
} else {
if(ds_reinit_state(group, &dest, stval) < 0) {
Expand Down

0 comments on commit 27fdee6

Please sign in to comment.