From: Kurt Zeilenga Date: Wed, 17 Nov 1999 22:58:01 +0000 (+0000) Subject: ITS#357: don't crash when at_cn == NULL. X-Git-Tag: OPENLDAP_REL_ENG_1_2_8~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25bae9a825b9302d4fce486bd3a246e5ee454c1a;p=thirdparty%2Fopenldap.git ITS#357: don't crash when at_cn == NULL. --- diff --git a/servers/slapd/back-ldbm/index.c b/servers/slapd/back-ldbm/index.c index 3fb8a9afa6..f0e892726d 100644 --- a/servers/slapd/back-ldbm/index.c +++ b/servers/slapd/back-ldbm/index.c @@ -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,