From: Howard Chu Date: Sat, 7 Oct 2006 22:18:15 +0000 (+0000) Subject: TS#4635 CR LF is also a valid line separator X-Git-Tag: OPENLDAP_REL_ENG_2_3_MP~72 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e16058d8572f7d30c0a838b74837016246039ef1;p=openldap TS#4635 CR LF is also a valid line separator --- 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;