[tarantool-patches] [PATCH 2/5] swim: fix an obvious use-after-free

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Wed May 22 22:52:18 MSK 2019


Follow up #3234
---
 src/lib/swim/swim.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/swim/swim.c b/src/lib/swim/swim.c
index 67700027e..eb7aa6f01 100644
--- a/src/lib/swim/swim.c
+++ b/src/lib/swim/swim.c
@@ -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 *
-- 
2.20.1 (Apple Git-117)





More information about the Tarantool-patches mailing list