handle unknown attribute type (ITS#3005)

This commit is contained in:
Pierangelo Masarati 2004-03-06 15:58:26 +00:00
parent f69c249892
commit 9b6d816fe1

View 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 ); rc = backsql_supad2at( bsi->bsi_oc, attr->an_desc, &vat );
if ( rc != 0 ) { if ( rc != 0 || vat == NULL ) {
Debug( LDAP_DEBUG_TRACE, "backsql_id2entry(): " Debug( LDAP_DEBUG_TRACE, "backsql_id2entry(): "
"attribute '%s' is not defined " "attribute '%s' is not defined "
"for objectlass '%s'\n", "for objectlass '%s'\n",