summaryrefslogtreecommitdiffstats
path: root/lib/libssl/d1_lib.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2012-01-05 22:58:51 +0000
committerdjm <djm@openbsd.org>2012-01-05 22:58:51 +0000
commitbad7092ff547a28615c1b2557c2fb7aa486890d3 (patch)
treea96501197b560f5d4b3ab21e6e6da40385dc5d70 /lib/libssl/d1_lib.c
parentDo not truncate the production database when starting to build a new one, (diff)
downloadwireguard-openbsd-bad7092ff547a28615c1b2557c2fb7aa486890d3.tar.xz
wireguard-openbsd-bad7092ff547a28615c1b2557c2fb7aa486890d3.zip
OpenSSL 1.0.0f: import upstream source
Diffstat (limited to 'lib/libssl/d1_lib.c')
-rw-r--r--lib/libssl/d1_lib.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libssl/d1_lib.c b/lib/libssl/d1_lib.c
index 48e8b6ffbb8..c3b77c889bd 100644
--- a/lib/libssl/d1_lib.c
+++ b/lib/libssl/d1_lib.c
@@ -204,7 +204,8 @@ void dtls1_clear(SSL *s)
pqueue buffered_messages;
pqueue sent_messages;
pqueue buffered_app_data;
-
+ unsigned int mtu;
+
if (s->d1)
{
unprocessed_rcds = s->d1->unprocessed_rcds.q;
@@ -212,6 +213,7 @@ void dtls1_clear(SSL *s)
buffered_messages = s->d1->buffered_messages;
sent_messages = s->d1->sent_messages;
buffered_app_data = s->d1->buffered_app_data.q;
+ mtu = s->d1->mtu;
dtls1_clear_queues(s);
@@ -222,6 +224,11 @@ void dtls1_clear(SSL *s)
s->d1->cookie_len = sizeof(s->d1->cookie);
}
+ if (SSL_get_options(s) & SSL_OP_NO_QUERY_MTU)
+ {
+ s->d1->mtu = mtu;
+ }
+
s->d1->unprocessed_rcds.q = unprocessed_rcds;
s->d1->processed_rcds.q = processed_rcds;
s->d1->buffered_messages = buffered_messages;