From 7e893c75d115db1280f77bc761e881e3e898182d Mon Sep 17 00:00:00 2001 From: Kevan Carstensen Date: Sat, 21 Jan 2012 17:26:37 -0800 Subject: [PATCH] ITS#7113 fix check order in connection_write() --- servers/slapd/connection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index a070500ecb..b29e2f22f0 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -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 ); -- 2.39.5