ITS#10430 Do not scroll past nul bytes

This commit is contained in:
Ondřej Kuzník 2026-01-28 10:26:35 +00:00 committed by Quanah Gibson-Mount
parent 7b5980fd64
commit 2c5388b2da

View file

@ -1087,7 +1087,7 @@ get_token( const char ** sp, char ** token_val )
static void
parse_whsp(const char **sp)
{
while (LDAP_SPACE(**sp))
while ( **sp && LDAP_SPACE(**sp))
(*sp)++;
}