mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-09 16:34:45 -05:00
misc bug fix for @oc support
This commit is contained in:
parent
50dd91de39
commit
34280359b5
1 changed files with 4 additions and 4 deletions
|
|
@ -2734,26 +2734,26 @@ str2ocs( ObjectClass ***out, char *in, const char *brkstr )
|
|||
slap_str2clist( &clist, in, brkstr );
|
||||
|
||||
for ( i = 0; clist && clist[i]; i++ ) {
|
||||
struct berval ocbv;
|
||||
if (*clist[i] == '@' ) {
|
||||
struct berval ocbv;
|
||||
ber_str2bv( clist[i]+1, strlen(clist[i]+1), 1, &ocbv );
|
||||
oc = oc_bvfind( &ocbv );
|
||||
if ( oc ) {
|
||||
k++;
|
||||
}
|
||||
ch_free( ocbv.bv_val );
|
||||
}
|
||||
ch_free( ocbv.bv_val );
|
||||
}
|
||||
|
||||
*out = ch_realloc( *out, (k + 1) * sizeof( ObjectClass *));
|
||||
|
||||
for ( i = 0; clist && clist[i]; i++ ) {
|
||||
struct berval ocbv;
|
||||
if (*clist[i] == '@' ) {
|
||||
struct berval ocbv;
|
||||
ber_str2bv( clist[i]+1, strlen(clist[i]+1), 1, &ocbv );
|
||||
(*out)[i] = oc_bvfind( &ocbv );
|
||||
ch_free( ocbv.bv_val );
|
||||
}
|
||||
ch_free( ocbv.bv_val );
|
||||
}
|
||||
|
||||
(*out)[i] = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue