From cd70bf5082b38162a9d511e2057b56e79111e748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Wed, 28 Jan 2026 10:28:05 +0000 Subject: [PATCH] ITS#10431 Enforce a stop when encountering a nul-leading line --- libraries/libldap/ldif.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ) {