]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
rustls: remove comment about checking handshaking
authorJacob Hoffman-Andrews <github@hoffman-andrews.com>
Fri, 19 Nov 2021 18:02:20 +0000 (10:02 -0800)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 20 Nov 2021 21:57:13 +0000 (22:57 +0100)
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

lib/vtls/rustls.c

index da1c252dc9afe06081c58e2dbe6e53c3bfe6dc87..b8af83a7c2548751f7d871d344f389530738ced7 100644 (file)
@@ -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");