mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Fix LDIF LF / CRLF handling.
Patch suggested by Matthew Backes <lucca@csun.edu>
This commit is contained in:
parent
64791571aa
commit
5972fb95f4
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user