summaryrefslogtreecommitdiffstats
path: root/ssl/record/ssl3_buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssl/record/ssl3_buffer.c')
-rw-r--r--ssl/record/ssl3_buffer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ssl/record/ssl3_buffer.c b/ssl/record/ssl3_buffer.c
index 1955148b1a..98ef8e65ec 100644
--- a/ssl/record/ssl3_buffer.c
+++ b/ssl/record/ssl3_buffer.c
@@ -41,6 +41,13 @@ int ssl3_setup_write_buffer(SSL_CONNECTION *s, size_t numwpipes, size_t len)
SSL3_BUFFER *wb;
size_t currpipe;
+ /*
+ * TODO(RECLAYER): Eventually this function can be removed once everything
+ * is moved to the write record layer.
+ */
+ if (!SSL_CONNECTION_IS_DTLS(s))
+ return 1;
+
s->rlayer.numwpipes = numwpipes;
if (len == 0) {