summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2019-03-25 16:06:39 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2019-03-27 07:20:12 +0100
commit96e07075e8f105b13e76b11e493d5aa2dd937226 (patch)
tree64546627ba66d390717fd40877c848a108575940
parentad27713bef613e6c4600a0fb83ae48c6d390ff5b (diff)
downloadgnutls-96e07075e8f105b13e76b11e493d5aa2dd937226.tar.gz
handshake: add missing initialization of local variable
Resolves: #704 Signed-off-by: Daiki Ueno <dueno@redhat.com> Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r--lib/handshake-tls13.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/handshake-tls13.c b/lib/handshake-tls13.c
index 33ed3afa3b..60f8030eb3 100644
--- a/lib/handshake-tls13.c
+++ b/lib/handshake-tls13.c
@@ -605,6 +605,8 @@ _gnutls13_recv_async_handshake(gnutls_session_t session)
return gnutls_assert_val(GNUTLS_E_UNEXPECTED_PACKET);
do {
+ _gnutls_handshake_buffer_init(&hsk);
+
/* the received handshake message has already been pushed into
* handshake buffers. As we do not need to use the handshake hash
* buffers we call the lower level receive functions */