Commit 27d27af0 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

More for ITS#6456

parent f3a86075
......@@ -686,9 +686,11 @@ slap_idassert_authzfrom_parse( ConfigArgs *c, slap_idassert_t *si )
ber_bvarray_add( &si->si_authz, &bv );
} else {
int i;
for ( i = 0; !BER_BVISNULL( &si->si_authz[ i ] ); i++ )
;
int i = 0;
if ( si->si_authz != NULL ) {
for ( ; !BER_BVISNULL( &si->si_authz[ i ] ); i++ )
;
}
if ( i <= c->valx ) {
ber_bvarray_add( &si->si_authz, &bv );
......@@ -731,9 +733,11 @@ slap_idassert_passthru_parse( ConfigArgs *c, slap_idassert_t *si )
ber_bvarray_add( &si->si_passthru, &bv );
} else {
int i;
for ( i = 0; !BER_BVISNULL( &si->si_passthru[ i ] ); i++ )
;
int i = 0;
if ( si->si_passthru != NULL ) {
for ( ; !BER_BVISNULL( &si->si_passthru[ i ] ); i++ )
;
}
if ( i <= c->valx ) {
ber_bvarray_add( &si->si_passthru, &bv );
......
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