Commits (3)
......@@ -2498,9 +2498,11 @@ asyncmeta_back_cf_gen( ConfigArgs *c )
break;
#endif /* SLAPD_META_CLIENT_PR */
case LDAP_BACK_CFG_KEEPALIVE:
slap_keepalive_parse( ber_bvstrdup(c->argv[1]),
&mt->mt_tls.sb_keepalive, 0, 0, 0);
case LDAP_BACK_CFG_KEEPALIVE: {
struct berval bv;
ber_str2bv( c->argv[1], 0, 1, &bv );
slap_keepalive_parse( &bv, &mt->mt_tls.sb_keepalive, 0, 0, 0 );
}
break;
case LDAP_BACK_CFG_TCP_USER_TIMEOUT:
......
......@@ -2051,9 +2051,11 @@ done_url:;
}
break;
case LDAP_BACK_CFG_KEEPALIVE:
slap_keepalive_parse( ber_bvstrdup(c->argv[1]),
&li->li_tls.sb_keepalive, 0, 0, 0);
case LDAP_BACK_CFG_KEEPALIVE: {
struct berval bv;
ber_str2bv( c->argv[1], 0, 1, &bv );
slap_keepalive_parse( &bv, &li->li_tls.sb_keepalive, 0, 0, 0 );
}
break;
case LDAP_BACK_CFG_TCP_USER_TIMEOUT:
......
......@@ -2662,9 +2662,9 @@ idassert-authzFrom "dn:<rootdn>"
c->fname, c->lineno, ca.argc, ca.argv );
}
assert( rc == 0 );
ch_free( ca.argv );
ch_free( ca.tline );
}
ch_free( ca.argv );
}
argc = c->argc;
argv = c->argv;
......@@ -2699,9 +2699,9 @@ idassert-authzFrom "dn:<rootdn>"
c->fname, c->lineno, ca.argc, argv );
}
assert( rc == 0 );
ch_free( ca.argv );
ch_free( ca.tline );
}
ch_free( ca.argv );
}
/* save the rule info */
......@@ -2718,7 +2718,7 @@ idassert-authzFrom "dn:<rootdn>"
/* move it to the right slot */
if ( ix < cnt ) {
for ( i=cnt; i>ix; i-- )
mt->mt_rwmap.rwm_bva_rewrite[i+1] = mt->mt_rwmap.rwm_bva_rewrite[i];
mt->mt_rwmap.rwm_bva_rewrite[i] = mt->mt_rwmap.rwm_bva_rewrite[i-1];
mt->mt_rwmap.rwm_bva_rewrite[i] = bv;
/* destroy old rules */
......@@ -2913,9 +2913,11 @@ map_fail:;
break;
#endif /* SLAPD_META_CLIENT_PR */
case LDAP_BACK_CFG_KEEPALIVE:
slap_keepalive_parse( ber_bvstrdup(c->argv[1]),
&mt->mt_tls.sb_keepalive, 0, 0, 0);
case LDAP_BACK_CFG_KEEPALIVE: {
struct berval bv;
ber_str2bv( c->argv[ 1 ], 0, 1, &bv );
slap_keepalive_parse( &bv, &mt->mt_tls.sb_keepalive, 0, 0, 0 );
}
break;
case LDAP_BACK_CFG_TCP_USER_TIMEOUT:
......