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

swim: fix an obvious use-after-free

Follow up #3234
parent bae68901
No related branches found
No related tags found
No related merge requests found
......@@ -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 *
......
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