int e = regcomp( &a->acl_attrval_re, bv.bv_val,
REG_EXTENDED | REG_ICASE );
if ( e ) {
- char err[SLAP_TEXT_BUFLEN],
- buf[ SLAP_TEXT_BUFLEN ];
+ char err[SLAP_TEXT_BUFLEN];
regerror( e, &a->acl_attrval_re, err, sizeof( err ) );
-
Debug(LDAP_DEBUG_ANY,
"%s: line %d: regular expression \"%s\" bad because of %s\n",
- fname,
- lineno,
- right,
- err );
+ fname, lineno, right, err );
goto fail;
}
a->acl_attrval_style = ACL_STYLE_REGEX;
int e = regcomp( &a->acl_dn_re, a->acl_dn_pat.bv_val,
REG_EXTENDED | REG_ICASE );
if ( e ) {
- char err[ SLAP_TEXT_BUFLEN ],
- buf[ SLAP_TEXT_BUFLEN ];
+ char err[ SLAP_TEXT_BUFLEN ];
regerror( e, &a->acl_dn_re, err, sizeof( err ) );
Debug(LDAP_DEBUG_ANY,
"%s: line %d: regular expression \"%s\" bad because of %s\n",
- fname, lineno, right,
- err );
+ fname, lineno, right, err );
goto fail;
}
}
struct timeval tv;
int rc;
int nretries = mt->mt_nretries;
- char buf[ SLAP_TEXT_BUFLEN ];
Debug( LDAP_DEBUG_TRACE,
">>> %s meta_back_bind_op_result[%d]\n",
* in case of failure, it resets mc...
*/
if ( rc != LDAP_SUCCESS ) {
- char buf[ SLAP_TEXT_BUFLEN ];
-
if ( mc == NULL ) {
/* meta_back_single_dobind() already sent
* response and released connection */
goto send_err;
}
-
if ( rc == LDAP_UNAVAILABLE ) {
/* FIXME: meta_back_retry() already re-calls
* meta_back_single_dobind() */
/* already bound (or anonymous) */
#ifdef DEBUG_205
- char buf[ SLAP_TEXT_BUFLEN ] = { '\0' };
int bound = 0;
if ( LDAP_BACK_CONN_ISBOUND( msc ) ) {
}
} else if ( rc == LDAP_RES_SEARCH_RESULT ) {
- char buf[ SLAP_TEXT_BUFLEN ];
char **references = NULL;
LDAPControl **ctrls = NULL;
sres = slap_map_api2result( rs );
if ( LogTest( LDAP_DEBUG_TRACE | LDAP_DEBUG_ANY ) ) {
+ char buf[ SLAP_TEXT_BUFLEN ];
snprintf( buf, sizeof( buf ),
"%s meta_back_search[%ld] "
"match=\"%s\" err=%ld",
backsql_BindRowAsStrings_x( sth, &row, op->o_tmpmemctx );
rc = SQLFetch( sth );
if ( BACKSQL_SUCCESS( rc ) ) {
- char buf[ SLAP_TEXT_BUFLEN ];
-
#ifdef LDAP_DEBUG
Debug(LDAP_DEBUG_TRACE,
" backsql_dn2id(\"%s\"): id=%s keyval=%s oc_id=%s dn=%s\n",
if ( 1 ) {
int origsize, size, realsize, rc;
socklen_t optlen;
- char buf[ SLAP_TEXT_BUFLEN ];
size = 0;
if ( slap_listeners[l]->sl_tcp_rmem > 0 ) {