aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtls/tls_fragmentation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libtls/tls_fragmentation.c')
-rw-r--r--src/libtls/tls_fragmentation.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libtls/tls_fragmentation.c b/src/libtls/tls_fragmentation.c
index 3ef232806..5a598cfc4 100644
--- a/src/libtls/tls_fragmentation.c
+++ b/src/libtls/tls_fragmentation.c
@@ -393,14 +393,14 @@ METHOD(tls_fragmentation_t, build, status_t,
*type = TLS_ALERT;
return NEED_MORE;
}
- if (this->handshake->cipherspec_changed(this->handshake))
- {
- *type = TLS_CHANGE_CIPHER_SPEC;
- *data = chunk_clone(chunk_from_chars(0x01));
- return NEED_MORE;
- }
if (!this->output.len)
{
+ if (this->handshake->cipherspec_changed(this->handshake))
+ {
+ *type = TLS_CHANGE_CIPHER_SPEC;
+ *data = chunk_clone(chunk_from_chars(0x01));
+ return NEED_MORE;
+ }
if (!this->handshake->finished(this->handshake))
{
status = build_handshake(this);