Commit 7e893c75 authored by Kevan Carstensen's avatar Kevan Carstensen Committed by Howard Chu
Browse files

ITS#7113 fix check order in connection_write()

parent 5ca62457
......@@ -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 );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment