server_name: Store the actual number of server names
commit8fc613454022285610b0ac03eeeb3a6b9b8a0e15
authorMartin Storsjo <martin@martin.st>
Wed, 31 Oct 2012 13:45:15 +0000 (31 15:45 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 31 Oct 2012 17:36:34 +0000 (31 18:36 +0100)
tree0ffb48ddc816a87f38fb9ab960fd100671cb3ba2
parentd4b6bd3f3e61ff8af04f4d088718a8873512ca01
server_name: Store the actual number of server names

Earlier, if the number of set server names exceeded the maximum,
the server_names field wasn't bounded to the maximum, which could
lead to reading out of bounds in _gnutls_server_name_send_params.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
lib/ext/server_name.c