aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-09-15 10:43:59 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-09-15 10:43:59 +0200
commit474b8e6fb7f1d8dab214ac47dd3de78bf69d6dd0 (patch)
tree0106e29284eef50a68f8d11c7a281bd51fdf2a0a
parent57d17292f913ab148e3e3e4790e12cea9517d8d1 (diff)
downloadpasst-474b8e6fb7f1d8dab214ac47dd3de78bf69d6dd0.tar
passt-474b8e6fb7f1d8dab214ac47dd3de78bf69d6dd0.tar.gz
passt-474b8e6fb7f1d8dab214ac47dd3de78bf69d6dd0.tar.bz2
passt-474b8e6fb7f1d8dab214ac47dd3de78bf69d6dd0.tar.lz
passt-474b8e6fb7f1d8dab214ac47dd3de78bf69d6dd0.tar.xz
passt-474b8e6fb7f1d8dab214ac47dd3de78bf69d6dd0.tar.zst
passt-474b8e6fb7f1d8dab214ac47dd3de78bf69d6dd0.zip
pasta: Clean up FIN connection flags once a connection is deleted
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--tcp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tcp.c b/tcp.c
index 8ab65eb..bc0dc61 100644
--- a/tcp.c
+++ b/tcp.c
@@ -1602,6 +1602,7 @@ static void tcp_splice_destroy(struct ctx *c, struct tcp_splice_conn *conn)
close(conn->from);
tcp_splice_state(conn, CLOSED);
tcp_table_splice_compact(c, conn);
+ conn->from_fin_sent = conn->to_fin_sent = 0;
conn->from_read = conn->from_written = 0;
conn->to_read = conn->to_written = 0;
return;