summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_record.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/tls13_record.c')
-rw-r--r--src/lib/libssl/tls13_record.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libssl/tls13_record.c b/src/lib/libssl/tls13_record.c
index 2c744668e5..dbc835c546 100644
--- a/src/lib/libssl/tls13_record.c
+++ b/src/lib/libssl/tls13_record.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls13_record.c,v 1.9 2021/10/23 13:12:14 jsing Exp $ */ 1/* $OpenBSD: tls13_record.c,v 1.10 2022/07/22 19:33:53 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -134,7 +134,8 @@ tls13_record_recv(struct tls13_record *rec, tls_read_cb wire_read,
134 TLS13_RECORD_HEADER_LEN, wire_read, wire_arg)) <= 0) 134 TLS13_RECORD_HEADER_LEN, wire_read, wire_arg)) <= 0)
135 return ret; 135 return ret;
136 136
137 tls_buffer_cbs(rec->buf, &cbs); 137 if (!tls_buffer_data(rec->buf, &cbs))
138 return TLS13_IO_FAILURE;
138 139
139 if (!CBS_get_u8(&cbs, &content_type)) 140 if (!CBS_get_u8(&cbs, &content_type))
140 return TLS13_IO_FAILURE; 141 return TLS13_IO_FAILURE;