From 6556841e287851a660e347ce6238fa9103baf056 Mon Sep 17 00:00:00 2001
From: Howard Chu <hyc@openldap.org>
Date: Sat, 7 Oct 2006 22:19:22 +0000
Subject: [PATCH] ITS#4635 CR LF fix from HEAD

---
 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;
-- 
GitLab