From: Pierangelo Masarati Date: Sat, 6 Mar 2004 15:58:26 +0000 (+0000) Subject: handle unknown attribute type (ITS#3005) X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~355 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9b6d816fe19edee2b3084dab7182be1c95a88ff9;p=openldap handle unknown attribute type (ITS#3005) --- diff --git a/servers/slapd/back-sql/entry-id.c b/servers/slapd/back-sql/entry-id.c index e1cf863cd1..d70169a2a5 100644 --- a/servers/slapd/back-sql/entry-id.c +++ b/servers/slapd/back-sql/entry-id.c @@ -396,7 +396,7 @@ backsql_id2entry( backsql_srch_info *bsi, Entry *e, backsql_entryID *eid ) } rc = backsql_supad2at( bsi->bsi_oc, attr->an_desc, &vat ); - if ( rc != 0 ) { + if ( rc != 0 || vat == NULL ) { Debug( LDAP_DEBUG_TRACE, "backsql_id2entry(): " "attribute '%s' is not defined " "for objectlass '%s'\n",