Reviewed-by: Richard Levitte <levitte@openssl.org>
SSL3_BUFFER wbuf;
/* each decoded record goes in here */
SSL3_RECORD rrec;
+ /* goes out from here */
+ SSL3_RECORD wrec;
} RECORD_LAYER;
#define RECORD_LAYER_set_ssl(rl, s) ((rl)->s = (s))
#define RECORD_LAYER_get_rbuf(rl) (&(rl)->rbuf)
#define RECORD_LAYER_get_wbuf(rl) (&(rl)->wbuf)
#define RECORD_LAYER_get_rrec(rl) (&(rl)->rrec)
-#define RECORD_LAYER_get_wrec(rl) (&(rl)->s->s3->wrec)
+#define RECORD_LAYER_get_wrec(rl) (&(rl)->wrec)
goto err;
memset(s3, 0, sizeof *s3);
s->s3 = s3;
- SSL3_RECORD_clear(RECORD_LAYER_get_wrec(&s->rlayer));
#ifndef OPENSSL_NO_SRP
if(!SSL_SRP_CTX_init(s))
RECORD_LAYER_set_ssl(&s->rlayer, s);
SSL3_RECORD_clear(RECORD_LAYER_get_rrec(&s->rlayer));
+ SSL3_RECORD_clear(RECORD_LAYER_get_wrec(&s->rlayer));
#ifndef OPENSSL_NO_KRB5
s->kssl_ctx = kssl_ctx_new();
int empty_fragment_done;
/* The value of 'extra' when the buffers were initialized */
int init_extra;
- SSL3_RECORD wrec; /* goes out from here */
/*
* storage for Alert/Handshake protocol data received but not yet
* processed by ssl3_read_bytes: