[sr-dev] git:master: modules/tls: Free TLS data for secure websocket connections

Hugh Waite hugh.waite at crocodile-rcs.com
Thu Jul 4 11:34:33 CEST 2013


Module: sip-router
Branch: master
Commit: 074f12c5a444188aa023797ac70e2d38d225cb18
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=074f12c5a444188aa023797ac70e2d38d225cb18

Author: Hugh Waite <hugh.waite at crocodile-rcs.com>
Committer: Hugh Waite <hugh.waite at crocodile-rcs.com>
Date:   Wed Jul  3 10:39:32 2013 +0100

modules/tls: Free TLS data for secure websocket connections

---

 modules/tls/tls_server.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/tls/tls_server.c b/modules/tls/tls_server.c
index e3d0a61..f71956d 100644
--- a/modules/tls/tls_server.c
+++ b/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();
 	}




More information about the sr-dev mailing list