[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] resolve warning
Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv5082/src/common
Modified Files:
tortls.c
Log Message:
resolve warning
Index: tortls.c
===================================================================
RCS file: /home/or/cvsroot/src/common/tortls.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- tortls.c 23 Oct 2003 14:20:51 -0000 1.29
+++ tortls.c 23 Oct 2003 14:27:53 -0000 1.30
@@ -274,7 +274,8 @@
if (global_tls_context) {
/* This is safe even if there are open connections: OpenSSL does
* reference counting with SSL and SSL_CTX objects. */
- SSL_CTX_free(global_tls_context);
+ SSL_CTX_free(global_tls_context->ctx);
+ free(global_tls_context);
}
global_tls_context = result;
return 0;