]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10431 Enforce a stop when encountering a nul-leading line
authorOndřej Kuzník <ondra@mistotebe.net>
Wed, 28 Jan 2026 10:28:05 +0000 (10:28 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 29 Jan 2026 16:14:30 +0000 (16:14 +0000)
libraries/libldap/ldif.c

index 9ed37eb1143f2c1c94eb34ac4a5603aa8a2b070d..79910449f0b336f21022889624e8cebe08fa9384 100644 (file)
@@ -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 ) {