Skip to content

Commit

Permalink
swim: fix an obvious use-after-free
Browse files Browse the repository at this point in the history
Follow up #3234
  • Loading branch information
Gerold103 committed May 22, 2019
1 parent bae6890 commit 8a20035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/swim/swim.c
Expand Up @@ -2014,8 +2014,8 @@ swim_quit(struct swim *swim)
swim_encode_quit(swim, &task->packet);
assert(rc == 2);
mp_encode_map(header, rc);
swim_quit_step_complete(task, &swim->scheduler, 0);
swim->self->status = MEMBER_LEFT;
swim_quit_step_complete(task, &swim->scheduler, 0);
}

struct swim_member *
Expand Down

0 comments on commit 8a20035

Please sign in to comment.