]> git.sur5r.net Git - openldap/commitdiff
TS#4635 CR LF is also a valid line separator
authorHoward Chu <hyc@openldap.org>
Sat, 7 Oct 2006 22:18:15 +0000 (22:18 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 7 Oct 2006 22:18:15 +0000 (22:18 +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;