]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
handshake: initialize buffer prior to use
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 2 Nov 2017 14:40:24 +0000 (15:40 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 19 Feb 2018 14:29:35 +0000 (15:29 +0100)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
lib/handshake.c

index cdc9558c8e85293ee3e512e6cb2085bf685e67c3..d12e80e676ca2a2be261559caa05ff8d5f82a864 100644 (file)
@@ -1976,6 +1976,8 @@ int _gnutls_send_server_hello(gnutls_session_t session, int again)
        const version_entry_st *vers;
        gnutls_ext_flags_t ext_parse_flag;
 
+       _gnutls_buffer_init(&buf);
+
        if (again == 0) {
                vers = get_version(session);
                if (unlikely(vers == NULL || session->security_parameters.cs == NULL))