diff options
author | Jacob Hoffman-Andrews <github@hoffman-andrews.com> | 2021-11-19 10:02:20 -0800 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-11-20 22:57:13 +0100 |
commit | 3f8fde366f7655079ff97bd267226f3f7c091844 (patch) | |
tree | a243350ab5ca46230b36f9e46eb8ca0881db9244 | |
parent | 9b9485e7ac3b20b0334788c4261b932ef8956184 (diff) | |
download | curl-3f8fde366f7655079ff97bd267226f3f7c091844.tar.gz |
rustls: remove comment about checking handshaking
The comment is incorrect in two ways:
- It says the check needs to be last, but the check is actually first.
- is_handshaking actually starts out true.
Closes #8038
-rw-r--r-- | lib/vtls/rustls.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/vtls/rustls.c b/lib/vtls/rustls.c index da1c252dc..b8af83a7c 100644 --- a/lib/vtls/rustls.c +++ b/lib/vtls/rustls.c @@ -416,9 +416,6 @@ cr_connect_nonblocking(struct Curl_easy *data, struct connectdata *conn, /* * Connection has been established according to rustls. Set send/recv * handlers, and update the state machine. - * This check has to come last because is_handshaking starts out false, - * then becomes true when we first write data, then becomes false again - * once the handshake is done. */ if(!rustls_connection_is_handshaking(rconn)) { infof(data, "Done handshaking"); |