]> git.sur5r.net Git - openldap/commitdiff
handle unknown attribute type (ITS#3005)
authorPierangelo Masarati <ando@openldap.org>
Sat, 6 Mar 2004 15:58:26 +0000 (15:58 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 6 Mar 2004 15:58:26 +0000 (15:58 +0000)
servers/slapd/back-sql/entry-id.c

index e1cf863cd1218f3862d7dbac399ee77cbe8b186e..d70169a2a5fddff75ce250aead88fe1058eba453 100644 (file)
@@ -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",