ssl-utils: add length validation for SNI extension
authorPeter Wu <peter@lekensteyn.nl>
Fri, 3 Feb 2017 17:44:36 +0000 (18:44 +0100)
committerAlexis La Goutte <alexis.lagoutte@gmail.com>
Mon, 6 Feb 2017 21:35:58 +0000 (21:35 +0000)
commit420b9e061e018cfd3d8799e16ebcfef347f0d528
treeb853e98023bbf49fc9ec740c60601df3f49a1620
parent6c1d140f6cb15e5328ee5ff344aadc7ee257a3c3
ssl-utils: add length validation for SNI extension

Add copy of the definition in a comment, remove check for empty
extension such that export info can be added if the extension is empty.
Remove check for empty HostName, this cannot happen (and is caught by
ssl_add_vector).

Change-Id: Ie63b97e89dc7254f159abb338b52f5f894a8564d
Reviewed-on: https://code.wireshark.org/review/19939
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
epan/dissectors/packet-ssl-utils.c