diff --git a/libraries/libldap/ldif.c b/libraries/libldap/ldif.c index 9ed37eb114..79910449f0 100644 --- a/libraries/libldap/ldif.c +++ b/libraries/libldap/ldif.c @@ -830,11 +830,13 @@ pop: /* ITS#9811 Reached the end looking for an entry, try again */ goto pop; } - stop = 1; len = 0; } else { len = strlen( line ); } + if ( !len ) { + stop = 1; + } } if ( stop ) {