From 9b6d816fe19edee2b3084dab7182be1c95a88ff9 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 6 Mar 2004 15:58:26 +0000 Subject: [PATCH] handle unknown attribute type (ITS#3005) --- servers/slapd/back-sql/entry-id.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- 2.39.5