From e16058d8572f7d30c0a838b74837016246039ef1 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 7 Oct 2006 22:18:15 +0000 Subject: [PATCH] TS#4635 CR LF is also a valid line separator --- libraries/liblutil/ldif.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/liblutil/ldif.c b/libraries/liblutil/ldif.c index defc1932d3..c639f87562 100644 --- a/libraries/liblutil/ldif.c +++ b/libraries/liblutil/ldif.c @@ -822,7 +822,8 @@ ldif_read_record( if ( last_ch == '\n' ) { (*lno)++; - if ( line[0] == '\n' ) { + if ( line[0] == '\n' || + ( line[0] == '\r' && line[1] == '\n' )) { if ( !found_entry ) { lcur = 0; top_comment = 0; -- 2.39.5