]> granicus.if.org Git - curl/commit
fix_hostname: strip off a single trailing dot from host name
authorDaniel Stenberg <daniel@haxx.se>
Mon, 5 May 2014 11:47:52 +0000 (13:47 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 6 May 2014 06:44:11 +0000 (08:44 +0200)
commit5de8d84098db1bd24e7fffefbe14e81f2a05995a
tree4f5081b2250f41e512a930ba742b52e97244bd9a
parent47d760714f2f44b7edc8f1ef4d5518286e402af9
fix_hostname: strip off a single trailing dot from host name

Primarily for SNI, we need the host name without a trailing dot.
"https://www.example.com." resolves fine but fails on SNI unless the dot
is removed.

Reported-by: Leon Winter
Bug: http://curl.haxx.se/mail/lib-2014-04/0161.html
lib/url.c