[Issue 9579] ldif_read_record(): incorrect parsing of EOF