#ifdef HAVE_TLS
int is_tls = op->o_conn->c_is_tls;
int flags = li->li_flags;
- time_t lctime = (time_t)(-1);
slap_bindconf *sb;
#endif /* HAVE_TLS */
ldap_unbind_ext( ld, NULL, NULL );
rs->sr_text = "Start TLS failed";
goto error_return;
-
- } else if ( li->li_idle_timeout ) {
- /* only touch when activity actually took place... */
- lctime = op->o_time;
}
#endif /* HAVE_TLS */
} else {
LDAP_BACK_CONN_ISTLS_CLEAR( lc );
}
- if ( lctime != (time_t)(-1) ) {
- lc->lc_time = lctime;
- }
#endif /* HAVE_TLS */
error_return:;
}
} else {
- if ( li->li_conn_ttl > 0 ) {
- lc->lc_create_time = op->o_time;
- }
+ lc->lc_create_time = op->o_time;
+ lc->lc_time = op->o_time;
}
return rs->sr_err;
ldap_pvt_thread_mutex_unlock( &slapd_rq.rq_mutex );
return;
-}
\ No newline at end of file
+}