encountering a carriage return in the input.
Found by jsg@ a long time ago in a respository far, far away.
-/* $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. */
cur_line = line2;
prev_line = line1;
} else {
- cur_line = line2;
- prev_line = line1;
+ cur_line = line1;
+ prev_line = line2;
}
line++;
lpos = 1;
-/* $OpenBSD: conflex.c,v 1.12 2013/12/05 22:31:35 krw Exp $ */
+/* $OpenBSD: conflex.c,v 1.13 2015/05/02 12:37:35 krw Exp $ */
/* Lexical scanner for dhcpd config file... */
cur_line = line2;
prev_line = line1;
} else {
- cur_line = line2;
- prev_line = line1;
+ cur_line = line1;
+ prev_line = line2;
}
line++;
lpos = 1;