use host->domain to report errors, $2 is free'd

This commit is contained in:
Omar Polo 2023-06-23 16:23:59 +00:00
parent c5ded53a8e
commit fc2d207c79
1 changed files with 2 additions and 1 deletions

View File

@ -260,7 +260,8 @@ vhost : SERVER string {
} '{' optnl servbody '}' {
if (host->cert_path == NULL ||
host->key_path == NULL)
yyerror("invalid vhost definition: %s", $2);
yyerror("invalid vhost definition: %s",
host->domain);
}
| error '}' { yyerror("bad server directive"); }
;