]> git.sur5r.net Git - openldap/commitdiff
ITS#4635 CR LF fix from HEAD
authorHoward Chu <hyc@openldap.org>
Sat, 7 Oct 2006 22:19:22 +0000 (22:19 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 7 Oct 2006 22:19:22 +0000 (22:19 +0000)
libraries/liblutil/ldif.c

index defc1932d34c0ecd9a17682166f0317ae890fe52..c639f875625fa217b4cefdf960035519796aff2b 100644 (file)
@@ -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;