ITS#7113 fix check order in connection_write()

This commit is contained in:
Kevan Carstensen 2012-01-21 17:26:37 -08:00 committed by Howard Chu
parent 5ca62457f3
commit 7e893c75d1

View file

@ -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 );