Fix off-by-one in TLS 1.2 handshake.
commitd2c3f9c514ae1252d4f0e9f3a143c6aa360902db
authorLudovic Courtès <ludo@chbouib.org>
Wed, 13 Jun 2007 17:41:57 +0000 (13 19:41 +0200)
committerSimon Josefsson <simon@josefsson.org>
Thu, 14 Jun 2007 07:05:16 +0000 (14 09:05 +0200)
tree44eebefd7fa7f576c97441b21d9830bba086a235
parent937885f613a5dc4ef88a29f0070d3bc1ef752cc5
Fix off-by-one in TLS 1.2 handshake.

* lib/auth_cert.c (_gnutls_gen_cert_server_cert_req): Before invoking
  `gnutls_malloc ()', increment SIZE when using TLS 1.2 so that the
  allocated buffer is large-enough to contain the list of supported
  hashes.  Don't change SIZE later on.

Signed-off-by: Simon Josefsson <simon@josefsson.org>
lib/auth_cert.c