mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 18:18:06 -05:00
ITS#357: don't crash when at_cn == NULL.
This commit is contained in:
parent
fb0388e7ad
commit
25bae9a825
1 changed files with 7 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue