summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_both.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/ssl_both.c')
-rw-r--r--src/lib/libssl/ssl_both.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_both.c b/src/lib/libssl/ssl_both.c
index 6bd5f08111..8ec94542c2 100644
--- a/src/lib/libssl/ssl_both.c
+++ b/src/lib/libssl/ssl_both.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_both.c,v 1.15 2019/03/25 16:35:48 jsing Exp $ */ 1/* $OpenBSD: ssl_both.c,v 1.16 2020/01/23 10:48:37 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -248,7 +248,7 @@ ssl3_get_finished(SSL *s, int a, int b)
248 CBS cbs; 248 CBS cbs;
249 249
250 /* should actually be 36+4 :-) */ 250 /* should actually be 36+4 :-) */
251 n = s->method->internal->ssl_get_message(s, a, b, SSL3_MT_FINISHED, 64, &ok); 251 n = ssl3_get_message(s, a, b, SSL3_MT_FINISHED, 64, &ok);
252 if (!ok) 252 if (!ok)
253 return ((int)n); 253 return ((int)n);
254 254
@@ -447,6 +447,9 @@ ssl3_get_message(SSL *s, int st1, int stn, int mt, long max, int *ok)
447 CBS cbs; 447 CBS cbs;
448 uint8_t u8; 448 uint8_t u8;
449 449
450 if (SSL_IS_DTLS(s))
451 return (dtls1_get_message(s, st1, stn, mt, max, ok));
452
450 if (S3I(s)->tmp.reuse_message) { 453 if (S3I(s)->tmp.reuse_message) {
451 S3I(s)->tmp.reuse_message = 0; 454 S3I(s)->tmp.reuse_message = 0;
452 if ((mt >= 0) && (S3I(s)->tmp.message_type != mt)) { 455 if ((mt >= 0) && (S3I(s)->tmp.message_type != mt)) {