summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_both.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libssl/ssl_both.c')
-rw-r--r--lib/libssl/ssl_both.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/libssl/ssl_both.c b/lib/libssl/ssl_both.c
index dff44ecd415..5da450b5cec 100644
--- a/lib/libssl/ssl_both.c
+++ b/lib/libssl/ssl_both.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_both.c,v 1.19 2020/09/24 17:59:54 jsing Exp $ */
+/* $OpenBSD: ssl_both.c,v 1.20 2020/09/24 18:12:00 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -686,6 +686,16 @@ err:
return (0);
}
+void
+ssl3_release_init_buffer(SSL *s)
+{
+ BUF_MEM_free(s->internal->init_buf);
+ s->internal->init_buf = NULL;
+ s->internal->init_msg = NULL;
+ s->internal->init_num = 0;
+ s->internal->init_off = 0;
+}
+
int
ssl3_setup_read_buffer(SSL *s)
{