Commit 00f5ca61 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Misc back-sql fixes from HEAD

parent 8a557790
......@@ -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 );
......
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment