diff options
author | pfg <pfg@FreeBSD.org> | 2016-06-06 13:31:28 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-06-06 13:31:28 +0000 |
commit | 223f7999b212496988916be99bfbd4e5f9543507 (patch) | |
tree | fa6a38ff6a39be02b2fd176f67bcca4b64f491b7 /sbin/dhclient | |
parent | 7ef21bdc1b9ae1df0de83575c3ff9d441e1f41c6 (diff) | |
download | FreeBSD-src-223f7999b212496988916be99bfbd4e5f9543507.zip FreeBSD-src-223f7999b212496988916be99bfbd4e5f9543507.tar.gz |
MFC r301235:
dhclient(1): correct obvious mismatch in get_char().
Correct switch between current and previous line buffers when
encountering a carriage return in the input.
CID: 1305719
Obtained from: OpenBSD (CVS rev. 1.30)
Diffstat (limited to 'sbin/dhclient')
-rw-r--r-- | sbin/dhclient/conflex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/conflex.c b/sbin/dhclient/conflex.c index 3c8932d..cd57e3b 100644 --- a/sbin/dhclient/conflex.c +++ b/sbin/dhclient/conflex.c @@ -97,8 +97,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; |