Commit 5972fb95 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Fix LDIF LF / CRLF handling.

Patch suggested by Matthew Backes <lucca@csun.edu>
parent 64791571
......@@ -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 {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment