fix build

This commit is contained in:
Omar Polo 2021-01-28 16:33:20 +00:00
parent 75fbb1789e
commit 415ac7a229
2 changed files with 3 additions and 3 deletions

View File

@ -88,8 +88,8 @@ vhost : TSERVER TSTRING '{' servopts locations '}' {
if (strstr($2, "xn--") != NULL) {
warnx("%s:%d \"%s\" looks like punycode: "
"you should use the decoded hostname."
config_path, yylineno);
"you should use the decoded hostname.",
config_path, yylineno, $2);
}
if (host->cert == NULL || host->key == NULL ||

2
puny.c
View File

@ -225,7 +225,7 @@ puny_decode(const char *hostname, char *out, size_t len)
s = hostname;
for (;;) {
end = end_of_component(s);
end = end_of_label(s);
l = end - s;
if (l >= sizeof(label))
return 0;