1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-28 01:35:32 +00:00

Fix hostname verification code.

[ From bug 1123 attachment 569.  --KON ]
This commit is contained in:
mancha 2012-07-15 23:27:53 +02:00 committed by Kalle Olavi Niemitalo
parent ba9bbc9e46
commit bc3fcb4696

View File

@ -97,7 +97,7 @@ match_hostname_pattern(const unsigned char *hostname,
* '*' must not match such characters.
* Do the same if invalid UTF-8 is found.
* Cast away const. */
uni = utf8_to_unicode((unsigned char **) hostname,
uni = utf8_to_unicode((unsigned char **) &hostname,
hostname_end);
if (uni == 0x002E
|| uni == 0x3002