diff options
author | dartraiden <wowemuh@gmail.com> | 2022-01-05 22:24:16 +0300 |
---|---|---|
committer | dartraiden <wowemuh@gmail.com> | 2022-01-05 22:24:16 +0300 |
commit | 09d65829ae970930c6942a6c06058e584f24b770 (patch) | |
tree | ac0545093fdc6102dff42b565d05fd0a5ebc78bc /libs/libcurl/src/hostcheck.c | |
parent | f703fea6fe02ffa69766d4b0c3fb3a09a1de7c6e (diff) |
libcurl: update to 7.81.0
Diffstat (limited to 'libs/libcurl/src/hostcheck.c')
-rw-r--r-- | libs/libcurl/src/hostcheck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/libcurl/src/hostcheck.c b/libs/libcurl/src/hostcheck.c index cf267a7659..cd45bd07ee 100644 --- a/libs/libcurl/src/hostcheck.c +++ b/libs/libcurl/src/hostcheck.c @@ -89,7 +89,7 @@ static int hostmatch(char *hostname, char *pattern) match. */ wildcard_enabled = 1; pattern_label_end = strchr(pattern, '.'); - if(!pattern_label_end || strchr(pattern_label_end + 1, '.') == NULL || + if(!pattern_label_end || !strchr(pattern_label_end + 1, '.') || pattern_wildcard > pattern_label_end || strncasecompare(pattern, "xn--", 4)) { wildcard_enabled = 0; |