mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
Fix LDIF LF / CRLF handling.
Patch suggested by Matthew Backes <lucca@csun.edu>
This commit is contained in:
parent
64791571aa
commit
5972fb95f4
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue