summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient/conflex.c
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2005-08-26 01:25:59 +0000
committerbrooks <brooks@FreeBSD.org>2005-08-26 01:25:59 +0000
commit2263ae4a8d4b1cd3e37f307ad991e0c99a9106ef (patch)
tree2a8e8e1ff73f3bd17bf240909179071ec0cf2ea5 /sbin/dhclient/conflex.c
parent8f09bbbbfb3963b60ad0c62488babc6e774bc9e3 (diff)
downloadFreeBSD-src-2263ae4a8d4b1cd3e37f307ad991e0c99a9106ef.zip
FreeBSD-src-2263ae4a8d4b1cd3e37f307ad991e0c99a9106ef.tar.gz
In read_string(), when the last character was a backslash, unincrement
the output index instead of keeping what ever trash was in the buffer. Reported by: iedowse
Diffstat (limited to 'sbin/dhclient/conflex.c')
-rw-r--r--sbin/dhclient/conflex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/dhclient/conflex.c b/sbin/dhclient/conflex.c
index c330191..3c8932d 100644
--- a/sbin/dhclient/conflex.c
+++ b/sbin/dhclient/conflex.c
@@ -236,6 +236,7 @@ read_string(FILE *cfile)
}
if (bs) {
bs = 0;
+ i--;
tokbuf[i] = c;
} else if (c == '\\')
bs = 1;
OpenPOWER on IntegriCloud