From d336721a77f5ab4b50b031d592d581856524c6f3 Mon Sep 17 00:00:00 2001 From: eugene Date: Fri, 22 Mar 2024 09:19:21 -0400 Subject: [PATCH] make sure crypto header goes first --- library/connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/connect.c b/library/connect.c index eef1227f..09a67f8e 100644 --- a/library/connect.c +++ b/library/connect.c @@ -737,7 +737,7 @@ static int send_crypto_header(ziti_connection conn) { wr->conn = conn; wr->message = m; - TAILQ_INSERT_TAIL(&conn->wreqs, wr, _next); + TAILQ_INSERT_HEAD(&conn->wreqs, wr, _next); flush_connection(conn); } return ZITI_OK;