Просмотр исходного кода

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

Hugh Waite 12 лет назад
Родитель
Сommit
1e77416672
1 измененных файлов с 1 добавлено и 1 удалено
  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();
 	}