Fix LDIF LF CRLF handling

This commit is contained in:
Kurt Zeilenga 2002-08-05 21:04:33 +00:00
parent 0c75cc4ee7
commit b87846d365

View file

@ -1238,7 +1238,7 @@ read_one_record( FILE *fp )
while ( fgets( line, sizeof(line), fp ) != NULL ) {
int len = strlen( line );
if( len < 2 || ( len == 3 && *line == '\r' )) {
if( len < 2 || ( len == 2 && *line == '\r' )) {
if( buf == NULL ) {
continue;
} else {