From: Kurt Zeilenga Date: Sun, 8 Jan 2006 17:45:27 +0000 (+0000) Subject: fixes for ITS#4291 and #4311 from HEAD X-Git-Tag: OPENLDAP_REL_ENG_2_3_16~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e48003e37c6a0410525229a0b3cc8b5b37d04b8a;p=openldap fixes for ITS#4291 and #4311 from HEAD --- diff --git a/servers/slapd/slapi/slapi_overlay.c b/servers/slapd/slapi/slapi_overlay.c index 3632ce58d3..f0939886e9 100644 --- a/servers/slapd/slapi/slapi_overlay.c +++ b/servers/slapd/slapi/slapi_overlay.c @@ -278,7 +278,8 @@ slapi_op_bind_callback( Operation *op, SlapReply *rs, int prc ) op->o_log_prefix, BER_BVISNULL( &op->o_conn->c_dn ) ? "" : op->o_conn->c_dn.bv_val, - op->orb_tmp_mech.bv_val, 0, 0 ); + BER_BVISNULL( &op->orb_tmp_mech ) + ? "" : op->orb_tmp_mech.bv_val, 0, 0 ); return -1; } @@ -880,7 +881,8 @@ int slapi_over_config( BackendDB *be ) ldap_pvt_thread_mutex_init( &slapi_time_mutex ); ldap_pvt_thread_mutex_init( &slapi_printmessage_mutex ); - slapi_log_file = slapi_ch_strdup( LDAP_RUNDIR LDAP_DIRSEP "errors" ); + if ( slapi_log_file == NULL ) + slapi_log_file = slapi_ch_strdup( LDAP_RUNDIR LDAP_DIRSEP "errors" ); rc = slapi_int_init_object_extensions(); if ( rc != 0 )