summaryrefslogtreecommitdiff
path: root/sbin/ipsecctl
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2006-06-16 10:09:52 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2006-06-16 10:09:52 +0000
commitbcd9f947e6436893016b284a4eb1e170b547f181 (patch)
treed82f414e0ec484ff036b2da9c4f573da571d2f7f /sbin/ipsecctl
parent60983f59ce5189fa98645c1f05bca017fb913e67 (diff)
report the correct line number on an error. Noticed by david@
Diffstat (limited to 'sbin/ipsecctl')
-rw-r--r--sbin/ipsecctl/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ipsecctl/parse.y b/sbin/ipsecctl/parse.y
index 882e8da9b31..f1aca8825f0 100644
--- a/sbin/ipsecctl/parse.y
+++ b/sbin/ipsecctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.106 2006/06/11 20:21:08 hshoexer Exp $ */
+/* $OpenBSD: parse.y,v 1.107 2006/06/16 10:09:51 hshoexer Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -810,7 +810,7 @@ yyerror(const char *fmt, ...)
errors = 1;
va_start(ap, fmt);
- fprintf(stderr, "%s: %d: ", infile, yyval.lineno);
+ fprintf(stderr, "%s: %d: ", infile, yylval.lineno);
vfprintf(stderr, fmt, ap);
fprintf(stderr, "\n");
va_end(ap);