Browse Source

modules/tls: Free TLS data for secure websocket connections
(cherry picked from commit 074f12c5a444188aa023797ac70e2d38d225cb18)

Hugh Waite 12 năm trước cách đây
mục cha
commit
1e77416672
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      modules/tls/tls_server.c

+ 1 - 1
modules/tls/tls_server.c

@@ -564,7 +564,7 @@ void tls_h_tcpconn_clean(struct tcp_connection *c)
 	/*
 	* runs within global tcp lock
 	*/
-	if (c->type != PROTO_TLS) {
+	if ((c->type != PROTO_TLS) && (c->type != PROTO_WSS)) {
 		BUG("Bad connection structure\n");
 		abort();
 	}