}
#ifdef SLAPD_SCHEMA_NOT_COMPAT
+ ava.aa_desc = NULL;
rc = slap_bv2ad( &desc, &ava.aa_desc, &text );
if( rc != LDAP_SUCCESS ) {
send_ldap_result( conn, op, rc, NULL,
#ifdef SLAPD_SCHEMA_NOT_COMPAT
for( i=0; ad_map[i].ssm_type; i++ ) {
- int rc = slap_str2ad( ad_map[i].ssm_type,
- (AttributeDescription **)
- &(((char *) &slap_schema)[ad_map[i].ssm_offset]),
- &text);
+ int rc;
+
+ AttributeDescription ** adp = (AttributeDescription **)
+ &(((char *) &slap_schema)[ad_map[i].ssm_offset]);
+
+ *adp = NULL;
+
+ rc = slap_str2ad( ad_map[i].ssm_type, adp, &text );
if( rc != LDAP_SUCCESS ) {
fprintf( stderr,