Fix tls13_server tls13_send bug

This commit is contained in:
Zhi Guan
2022-07-30 11:46:56 +08:00
parent b7f8c5113d
commit 605026da08
2 changed files with 6 additions and 6 deletions

View File

@@ -209,7 +209,7 @@ restart:
}
} while (!len);
if (tls13_send(&conn, (uint8_t *)buf, len, /* &sentlen*/ 0) != 1) {
if (tls13_send(&conn, (uint8_t *)buf, len, &sentlen) != 1) {
fprintf(stderr, "%s: send failure, close connection\n", prog);
close(conn.sock);
goto end;