projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
291c340
)
Tell OpenSSL that the data is gone
author
Alan T. DeKok
<aland@freeradius.org>
Thu, 20 Oct 2011 12:24:09 +0000
(14:24 +0200)
committer
Alan T. DeKok
<aland@freeradius.org>
Thu, 20 Oct 2011 12:24:09 +0000
(14:24 +0200)
src/main/tls.c
patch
|
blob
|
history
diff --git
a/src/main/tls.c
b/src/main/tls.c
index
c6a6b6e
..
b1d1cf3
100644
(file)
--- a/
src/main/tls.c
+++ b/
src/main/tls.c
@@
-916,6
+916,8
@@
static int generate_eph_rsa_key(SSL_CTX *ctx)
static void cbtls_remove_session(UNUSED SSL_CTX *ctx, SSL_SESSION *sess)
{
+ int i;
+
size_t size;
VALUE_PAIR *vp;
char buffer[2 * MAX_SESSION_SIZE + 1];
@@
-930,6
+932,10
@@
static void cbtls_remove_session(UNUSED SSL_CTX *ctx, SSL_SESSION *sess)
vp = SSL_SESSION_get_ex_data(sess, FR_TLS_EX_INDEX_VPS);
if (vp) pairfree(&vp);
+ for (i = 0; i <= FR_TLS_EX_INDEX_STORE; i++) {
+ SSL_SESSION_get_ex_data(sess, i, NULL);
+ }
+
SSL_SESSION_free(sess);
return;