From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 517682F388 for ; Wed, 22 May 2019 15:52:30 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uR2Ka0zyyzGh for ; Wed, 22 May 2019 15:52:30 -0400 (EDT) Received: from smtp33.i.mail.ru (smtp33.i.mail.ru [94.100.177.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id EB0E52F1FE for ; Wed, 22 May 2019 15:52:29 -0400 (EDT) From: Vladislav Shpilevoy Subject: [tarantool-patches] [PATCH 2/5] swim: fix an obvious use-after-free Date: Wed, 22 May 2019 22:52:18 +0300 Message-Id: <647cd1a5914c82d328f1bfc13510e1964d734872.1558554655.git.v.shpilevoy@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: tarantool-patches@freelists.org Cc: kostja@tarantool.org 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)