mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
ITS#7113 fix check order in connection_write()
This commit is contained in:
parent
5ca62457f3
commit
7e893c75d1
1 changed files with 2 additions and 2 deletions
|
|
@ -1892,8 +1892,6 @@ int connection_write(ber_socket_t s)
|
|||
|
||||
assert( connections != NULL );
|
||||
|
||||
slapd_clr_write( s, 0 );
|
||||
|
||||
c = connection_get( s );
|
||||
if( c == NULL ) {
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
|
|
@ -1902,6 +1900,8 @@ int connection_write(ber_socket_t s)
|
|||
return -1;
|
||||
}
|
||||
|
||||
slapd_clr_write( s, 0 );
|
||||
|
||||
#ifdef HAVE_TLS
|
||||
if ( c->c_is_tls && c->c_needs_tls_accept ) {
|
||||
connection_return( c );
|
||||
|
|
|
|||
Loading…
Reference in a new issue