Commit Diff


commit - 75fbb1789e8009882ee90e4d76d5907003e5660d
commit + 415ac7a229aa653458e1bb571afe717fd4779afa
blob - d64263737b0bc4264a5c370eca18c7b99918fbc0
blob + e9b091b569a24adb8249b3af3d4fa8aa69747bfb
--- parse.y
+++ parse.y
@@ -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 ||
blob - c00314c4ed91dbe753d78fd4e479fd0c3a7ab3c5
blob + c84f4e01a9fe6b4ae81f8447d7f89e48876cdf5e
--- puny.c
+++ puny.c
@@ -225,7 +225,7 @@ puny_decode(const char *hostname, char *out, size_t le
 
 	s = hostname;
 	for (;;) {
-		end = end_of_component(s);
+		end = end_of_label(s);
 		l = end - s;
 		if (l >= sizeof(label))
 			return 0;