Fix LDIF LF / CRLF handling.

Patch suggested by Matthew Backes <lucca@csun.edu>
This commit is contained in:
Kurt Zeilenga 2002-08-05 19:48:50 +00:00
parent 64791571aa
commit 5972fb95f4

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 {