fix ITS#2309

This commit is contained in:
Pierangelo Masarati 2003-02-10 18:15:36 +00:00
parent a667cd989b
commit 06b981429a
2 changed files with 7 additions and 3 deletions

View file

@ -418,12 +418,16 @@ backsql_id2entry( backsql_srch_info *bsi, Entry *e, backsql_entryID *eid )
const char *text = NULL;
char textbuf[ 1024 ];
size_t textlen = sizeof( textbuf );
struct berval bv[ 2 ] = { bsi->oc->oc->soc_cname, BER_BVNULL };
struct berval bv[ 2 ];
struct berval soc;
AttributeDescription *ad_soc
= slap_schema.si_ad_structuralObjectClass;
int rc;
int rc = structural_class( bv, &soc, NULL,
bv[ 0 ] = bsi->oc->oc->soc_cname;
bv[ 0 ].bv_val = NULL;
rc = structural_class( bv, &soc, NULL,
&text, textbuf, textlen );
if ( rc != LDAP_SUCCESS ) {
entry_free( e );

View file

@ -31,7 +31,7 @@ backsql_LTX_init_module(
memset( &bi, '\0', sizeof( bi ) );
bi.bi_type = "sql";
bi.bi_init = backbacksql_initialize;
bi.bi_init = sql_back_initialize;
backend_add( &bi );
return 0;