summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2005-01-07 20:13:50 +0000
committerSimon Josefsson <simon@josefsson.org>2005-01-07 20:13:50 +0000
commit98872ea696ceee88f236b3c5b3db4ceee5347489 (patch)
tree416be548f4f30a4d9fe47023256c942095cd659a
parentb3a622054cd3e5533fb56f6e80f814276d584803 (diff)
downloadgnutls-98872ea696ceee88f236b3c5b3db4ceee5347489.tar.gz
(generate_normal_master): Use larger buffer, to hold entire hex
output. Reported by Michael.Ringe@aachen.utimaco.de.
-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,