Prechádzať zdrojové kódy

tls: Fix typos

(cherry picked from commit ff9b030be39f82d0e952301ddd0b61a0de5a8041)
Bastian Triller 3 rokov pred
rodič
commit
73df223b4e
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/modules/tls/tls_server.c

+ 1 - 1
src/modules/tls/tls_server.c

@@ -737,7 +737,7 @@ void tls_h_tcpconn_close_f(struct tcp_connection *c, int fd)
 			tls_mbuf_init(&rd, 0, 0); /* no read */
 			tls_mbuf_init(&rd, 0, 0); /* no read */
 			tls_mbuf_init(&wr, wr_buf, sizeof(wr_buf));
 			tls_mbuf_init(&wr, wr_buf, sizeof(wr_buf));
 			if (tls_set_mbufs(c, &rd, &wr)==0) {
 			if (tls_set_mbufs(c, &rd, &wr)==0) {
-				tls_shutdown(c); /* shudown only on succesfull set fd */
+				tls_shutdown(c); /* shutdown only on successful set fd */
 				/* write as much as possible and update wr.
 				/* write as much as possible and update wr.
 				 * Since this is a close, we don't want to queue the write
 				 * Since this is a close, we don't want to queue the write
 				 * (if it can't write immediately, just fail silently)
 				 * (if it can't write immediately, just fail silently)