]> git.ipfire.org Git - thirdparty/curl.git/commit
idn: return error if the conversion ends up with a blank host
authorDaniel Stenberg <daniel@haxx.se>
Fri, 24 Feb 2023 17:17:33 +0000 (18:17 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 27 Feb 2023 14:12:29 +0000 (15:12 +0100)
commitcf3e6ce92f1c9686129d0fd4a5d39c0fb38792ec
tree5336ae7bc25263faa9506a2304703f17fb03b695
parent49a9f13c3997494aee368f0b2c4104b370f509e6
idn: return error if the conversion ends up with a blank host

Some IDN sequences are converted into "" (nothing), which can make this
function end up with a zero length host name and we cannot consider that
a valid host to continue with.

Reported-by: Maciej Domanski
Closes #10617
lib/idn.c