]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
(generate_normal_master): Use larger buffer, to hold entire hex
authorSimon Josefsson <simon@josefsson.org>
Fri, 7 Jan 2005 20:13:50 +0000 (20:13 +0000)
committerSimon Josefsson <simon@josefsson.org>
Fri, 7 Jan 2005 20:13:50 +0000 (20:13 +0000)
output.  Reported by Michael.Ringe@aachen.utimaco.de.

lib/gnutls_kx.c

index 67ace83e9fa946087cc35da8fc27a830ee16705f..7778f31899a74d00351dd553bb34b86fc65d22fb 100644 (file)
@@ -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,