summaryrefslogtreecommitdiff
path: root/sbin/dhclient/conflex.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2015-05-02 12:37:36 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2015-05-02 12:37:36 +0000
commit7779b5e91b95097419ac00c882d2b00d525e6117 (patch)
treef0c5a9af13e93f7d69c4f283bb10de76a07c79e6 /sbin/dhclient/conflex.c
parent0ee0ff18f3f27004c5817ed9964c3b13410c1896 (diff)
Correct switch between current and previous line buffers when
encountering a carriage return in the input. Found by jsg@ a long time ago in a respository far, far away.
Diffstat (limited to 'sbin/dhclient/conflex.c')
-rw-r--r--sbin/dhclient/conflex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/dhclient/conflex.c b/sbin/dhclient/conflex.c
index 46fb37e31d9..df77fb01ef6 100644
--- a/sbin/dhclient/conflex.c
+++ b/sbin/dhclient/conflex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conflex.c,v 1.29 2014/05/05 18:02:49 krw Exp $ */
+/* $OpenBSD: conflex.c,v 1.30 2015/05/02 12:37:35 krw Exp $ */
/* Lexical scanner for dhclient config file. */
@@ -107,8 +107,8 @@ get_char(FILE *cfile)
cur_line = line2;
prev_line = line1;
} else {
- cur_line = line2;
- prev_line = line1;
+ cur_line = line1;
+ prev_line = line2;
}
line++;
lpos = 1;