Move s->packet and s->packet_length into s->rlayer
[openssl.git] / ssl / s3_enc.c
index d3269245d3f9ac41099cda3e4202303c5646d254..974668ba45d61980358133d7c706cc6516784657 100644 (file)
@@ -270,8 +270,7 @@ int ssl3_change_cipher_state(SSL *s, int which)
                        SSL_R_COMPRESSION_LIBRARY_ERROR);
                 goto err2;
             }
-            if(!SSL3_RECORD_setup(RECORD_LAYER_get_rrec(&s->rlayer),
-                SSL3_RT_MAX_PLAIN_LENGTH))
+            if(!RECORD_LAYER_setup_comp_buffer(&s->rlayer))
                 goto err;
         }
 #endif