diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2007-02-19 08:29:31 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2007-02-19 08:29:31 +0000 |
commit | cd8d6050421ef5d5862d3a7b8c08b520a8b96d1f (patch) | |
tree | 9b0b19b2b9b5ff13ae960fe008069da9925725dd /sbin/ipsecctl | |
parent | d03e3ab7d835218970b49956e96e3ebb7a998076 (diff) |
undo previous commit and keep the original behaviour of the parser.
asked for by deraadt@
Diffstat (limited to 'sbin/ipsecctl')
-rw-r--r-- | sbin/ipsecctl/parse.y | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sbin/ipsecctl/parse.y b/sbin/ipsecctl/parse.y index b7c8465f3f1..c15d9a07a13 100644 --- a/sbin/ipsecctl/parse.y +++ b/sbin/ipsecctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.118 2007/02/16 10:16:09 hshoexer Exp $ */ +/* $OpenBSD: parse.y,v 1.119 2007/02/19 08:29:30 hshoexer Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -1041,8 +1041,10 @@ top: *p = '\0'; break; } - if (c == '\n') - return (0); + if (c == '\n') { + lineno++; + continue; + } if (p + 1 >= buf + sizeof(buf) - 1) { yyerror("string too long"); return (findeol()); |