Skip to content

Commit

Permalink
Fix KASAN use-after-free in tfw_connection_drop(): conn_drop hook
Browse files Browse the repository at this point in the history
may free the conn and we should not dereference the pointer even
for the assertion.
  • Loading branch information
krizhanovsky committed Aug 17, 2022
1 parent ec72714 commit 64bb950
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fw/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ tfw_connection_drop(TfwConn *conn)
{
/* Ask higher levels to free resources at connection close. */
TFW_CONN_HOOK_CALL(conn, conn_drop);
BUG_ON(conn->stream.msg);
}

/*
Expand Down

0 comments on commit 64bb950

Please sign in to comment.