summaryrefslogtreecommitdiff
path: root/src/lib/libssl
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl')
-rw-r--r--src/lib/libssl/s3_clnt.c2
-rw-r--r--src/lib/libssl/ssl_ciph.c2
-rw-r--r--src/lib/libssl/ssl_lib.c2
-rw-r--r--src/lib/libssl/test/times2
4 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/libssl/s3_clnt.c b/src/lib/libssl/s3_clnt.c
index 5fd3520caf..50308487aa 100644
--- a/src/lib/libssl/s3_clnt.c
+++ b/src/lib/libssl/s3_clnt.c
@@ -173,7 +173,7 @@ int ssl3_connect(SSL *s)
173 long num1; 173 long num1;
174 void (*cb)(const SSL *ssl,int type,int val)=NULL; 174 void (*cb)(const SSL *ssl,int type,int val)=NULL;
175 int ret= -1; 175 int ret= -1;
176 int new_state,state,skip=0;; 176 int new_state,state,skip=0;
177 177
178 RAND_add(&Time,sizeof(Time),0); 178 RAND_add(&Time,sizeof(Time),0);
179 ERR_clear_error(); 179 ERR_clear_error();
diff --git a/src/lib/libssl/ssl_ciph.c b/src/lib/libssl/ssl_ciph.c
index 0c2aa249b4..52f91cfe60 100644
--- a/src/lib/libssl/ssl_ciph.c
+++ b/src/lib/libssl/ssl_ciph.c
@@ -1355,7 +1355,7 @@ int SSL_COMP_add_compression_method(int id, COMP_METHOD *cm)
1355 comp->method=cm; 1355 comp->method=cm;
1356 load_builtin_compressions(); 1356 load_builtin_compressions();
1357 if (ssl_comp_methods 1357 if (ssl_comp_methods
1358 && !sk_SSL_COMP_find(ssl_comp_methods,comp)) 1358 && sk_SSL_COMP_find(ssl_comp_methods,comp) >= 0)
1359 { 1359 {
1360 OPENSSL_free(comp); 1360 OPENSSL_free(comp);
1361 MemCheck_on(); 1361 MemCheck_on();
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c
index 68eee77e6f..893abff1f4 100644
--- a/src/lib/libssl/ssl_lib.c
+++ b/src/lib/libssl/ssl_lib.c
@@ -510,6 +510,8 @@ void SSL_free(SSL *s)
510 510
511 if (s->ctx) SSL_CTX_free(s->ctx); 511 if (s->ctx) SSL_CTX_free(s->ctx);
512#ifndef OPENSSL_NO_TLSEXT 512#ifndef OPENSSL_NO_TLSEXT
513 if (s->tlsext_hostname)
514 OPENSSL_free(s->tlsext_hostname);
513 if (s->initial_ctx) SSL_CTX_free(s->initial_ctx); 515 if (s->initial_ctx) SSL_CTX_free(s->initial_ctx);
514 if (s->tlsext_ocsp_exts) 516 if (s->tlsext_ocsp_exts)
515 sk_X509_EXTENSION_pop_free(s->tlsext_ocsp_exts, 517 sk_X509_EXTENSION_pop_free(s->tlsext_ocsp_exts,
diff --git a/src/lib/libssl/test/times b/src/lib/libssl/test/times
index 49aeebf216..738d569b8f 100644
--- a/src/lib/libssl/test/times
+++ b/src/lib/libssl/test/times
@@ -68,7 +68,7 @@ eric (adding numbers to speculation)
68--- Appendix --- 68--- Appendix ---
69- The time measured is user time but these number a very rough. 69- The time measured is user time but these number a very rough.
70- Remember this is the cost of both client and server sides of the protocol. 70- Remember this is the cost of both client and server sides of the protocol.
71- The TCP/kernal overhead of connection establishment is normally the 71- The TCP/kernel overhead of connection establishment is normally the
72 killer in SSL. Often delays in the TCP protocol will make session-id 72 killer in SSL. Often delays in the TCP protocol will make session-id
73 reuse look slower that new sessions, but this would not be the case on 73 reuse look slower that new sessions, but this would not be the case on
74 a loaded server. 74 a loaded server.