]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4452 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 6 Mar 2013 18:58:22 +0000 (12:58 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 6 Mar 2013 18:58:30 +0000 (12:58 -0600)
libs/sofia-sip/.update
libs/sofia-sip/libsofia-sip-ua/tport/tport_tls.c

index e6a01c6b4309ad09e73fd9572f1dc724f45eaee4..0114190bd80c010aa92af74a10d7d7c64bab6d78 100644 (file)
@@ -1 +1 @@
-Fri Mar  1 15:47:13 CST 2013
+Wed Mar  6 12:57:17 CST 2013
index 2facb30d0df526887091eaa9c1d111ce9e77993f..828b3f313c60aa0be73936db0f83f64b15cc58ff 100644 (file)
@@ -303,6 +303,7 @@ int tls_init_context(tls_t *tls, tls_issues_t const *ti)
       meth = SSLv23_method();
 
     tls->ctx = SSL_CTX_new((SSL_METHOD*)meth);
+       SSL_CTX_sess_set_remove_cb(tls->ctx, NULL);
   }
 
   if (tls->ctx == NULL) {
@@ -399,14 +400,14 @@ void tls_free(tls_t *tls)
   if (!tls)
     return;
 
-  if (tls->con != NULL)
-    SSL_shutdown(tls->con);
+  if (tls->con != NULL) {
+       SSL_shutdown(tls->con);
+       SSL_free(tls->con), tls->con = NULL;
+  }
 
-  if (tls->ctx != NULL && tls->type != tls_slave)
+  if (tls->ctx != NULL && tls->type != tls_slave) {
     SSL_CTX_free(tls->ctx);
-
-  if (tls->bio_con != NULL)
-    BIO_free(tls->bio_con);
+  }
 
   su_home_unref(tls->home);
 }
@@ -475,7 +476,6 @@ tls_t *tls_init_secondary(tls_t *master, int sock, int accept)
 
   if (tls) {
     tls->ctx = master->ctx;
-    tls->type = master->type;
     tls->accept = accept ? 1 : 0;
     tls->verify_outgoing = master->verify_outgoing;
     tls->verify_incoming = master->verify_incoming;