Commit c689e1cb authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

bv2ad expects desc pointer to be NULL if unallocated

parent 6c49fe7d
......@@ -48,6 +48,7 @@ get_ava(
}
aa = ch_malloc( sizeof( AttributeAssertion ) );
aa->aa_desc = NULL;
rc = slap_bv2ad( &type, &aa->aa_desc, &text );
......@@ -59,6 +60,7 @@ get_ava(
}
aa->aa_value = value;
*ava = aa;
return LDAP_SUCCESS;
}
......
......@@ -99,6 +99,8 @@ get_filter(
break;
}
assert( f->f_ava != NULL );
#ifdef SLAPD_SCHEMA_NOT_COMPAT
*fstr = ch_malloc( sizeof("(=)")
+ f->f_av_desc->ad_cname->bv_len
......
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