ITS#357: don't crash when at_cn == NULL.

This commit is contained in:
Kurt Zeilenga 1999-11-17 22:58:01 +00:00
parent fb0388e7ad
commit 25bae9a825

View file

@ -298,6 +298,13 @@ index_change_values(
/* at_cn = at_canonical_name( type ); */
at_cn = type;
if ( at_cn == NULL ) {
Debug( LDAP_DEBUG_ANY,
"<= index_change_values no canonical name for type \"%s\"\n",
type != NULL ? type : "(NULL)", 0, 0 );
return( -1 );
}
if ( (db = ldbm_cache_open( be, at_cn, LDBM_SUFFIX, mode ))
== NULL ) {
Debug( LDAP_DEBUG_ANY,