diff options
author | Matt Caswell <matt@openssl.org> | 2015-01-30 16:05:47 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-03-26 13:53:07 +0000 |
commit | db9a32e7193ef5841e5a021061237b8b24f68126 (patch) | |
tree | d9c90fb8f825f4e920297f38bfdf9db5e6a57c37 /ssl/d1_pkt.c | |
parent | 33d23b87a0d06bc497a13b1998737a1ce469a785 (diff) |
Encapsulate access to s->s3->wbuf
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'ssl/d1_pkt.c')
-rw-r--r-- | ssl/d1_pkt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ssl/d1_pkt.c b/ssl/d1_pkt.c index 4ac29b1c3b..5219444259 100644 --- a/ssl/d1_pkt.c +++ b/ssl/d1_pkt.c @@ -1444,11 +1444,13 @@ int do_dtls1_write(SSL *s, int type, const unsigned char *buf, SSL3_BUFFER *wb; SSL_SESSION *sess; + wb = RECORD_LAYER_get_wbuf(&s->rlayer); + /* * first check if there is a SSL3_BUFFER still being written out. This * will happen with non blocking IO */ - if (s->s3->wbuf.left != 0) { + if (SSL3_BUFFER_get_left(wb) != 0) { OPENSSL_assert(0); /* XDTLS: want to see if we ever get here */ return (ssl3_write_pending(s, type, buf, len)); } @@ -1465,7 +1467,6 @@ int do_dtls1_write(SSL *s, int type, const unsigned char *buf, return 0; wr = &(s->s3->wrec); - wb = &(s->s3->wbuf); sess = s->session; if ((sess == NULL) || |