commit fc2d207c79125ffd80a6819b50981d9401232660 from: Omar Polo date: Fri Jun 23 16:23:59 2023 UTC use host->domain to report errors, $2 is free'd commit - c5ded53a8e37b5812d3648c4247ba9f4cc6f2028 commit + fc2d207c79125ffd80a6819b50981d9401232660 blob - 6b6d2d2185094799d60b34614686df8038febbfd blob + d7a6bb3597620f1ed4bdf3a1ceb1e0dbb0930c8a --- parse.y +++ parse.y @@ -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"); } ;