summaryrefslogtreecommitdiff
path: root/lib/gnutls_kx.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gnutls_kx.c')
-rw-r--r--lib/gnutls_kx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gnutls_kx.c b/lib/gnutls_kx.c
index 67ace83e9f..7778f31899 100644
--- a/lib/gnutls_kx.c
+++ b/lib/gnutls_kx.c
@@ -1,6 +1,6 @@
/*
+ * Copyright (C) 2004, 2005 Free Software Foundation
* Copyright (C) 2000,2001 Nikos Mavroyanopoulos
- * Copyright (C) 2004 Free Software Foundation
*
* This file is part of GNUTLS.
*
@@ -57,7 +57,7 @@ static int generate_normal_master(gnutls_session_t session,
int keep_premaster)
{
int ret = 0;
- opaque random[2 * TLS_RANDOM_SIZE];
+ opaque random[2 * TLS_RANDOM_SIZE + 1];
char buf[64];
memcpy(random, session->security_parameters.client_random,