From: Howard Chu Date: Sat, 7 Oct 2006 22:19:22 +0000 (+0000) Subject: ITS#4635 CR LF fix from HEAD X-Git-Tag: OPENLDAP_REL_ENG_2_3_28~8 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6556841e287851a660e347ce6238fa9103baf056;p=openldap ITS#4635 CR LF fix from HEAD --- 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;