detect braindead entries (e.g. from back-perl, ITS#4845,ITS#4852)

This commit is contained in:
Pierangelo Masarati 2007-02-26 09:50:19 +00:00
parent 4ae77ae266
commit 2271fb4636

View file

@ -166,6 +166,11 @@ str2entry2( char *s, int checkvals )
break;
}
i++;
if (i >= lines) {
Debug( LDAP_DEBUG_TRACE,
"<= str2entry ran past end of entry\n", 0, 0, 0 );
goto fail;
}
rc = ldif_parse_line2( s, type+i, vals+i, &freev );
freeval[i] = freev;