aboutsummaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-06-23 16:23:59 +0000
committerOmar Polo <op@omarpolo.com>2023-06-23 16:23:59 +0000
commitfc2d207c79125ffd80a6819b50981d9401232660 (patch)
treebc77048f04c996dccf64f5dffdbc7079e9af73bd /parse.y
parentc5ded53a8e37b5812d3648c4247ba9f4cc6f2028 (diff)
use host->domain to report errors, $2 is free'd
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 6b6d2d2..d7a6bb3 100644
--- a/parse.y
+++ b/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"); }
;