aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libtls/tls_crypto.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libtls/tls_crypto.c b/src/libtls/tls_crypto.c
index d8930acbd..4d84876d0 100644
--- a/src/libtls/tls_crypto.c
+++ b/src/libtls/tls_crypto.c
@@ -1598,7 +1598,7 @@ METHOD(tls_crypto_t, resume_session, tls_cipher_suite_t,
this->suite = this->cache->lookup(this->cache, session, id, &master);
if (this->suite)
{
- select_cipher_suite(this, &this->suite, 1, KEY_ANY);
+ this->suite = select_cipher_suite(this, &this->suite, 1, KEY_ANY);
if (this->suite)
{
this->prf->set_key(this->prf, master);
@@ -1606,8 +1606,9 @@ METHOD(tls_crypto_t, resume_session, tls_cipher_suite_t,
}
chunk_clear(&master);
}
+ return this->suite;
}
- return this->suite;
+ return 0;
}
METHOD(tls_crypto_t, get_session, chunk_t,