]> git.sur5r.net Git - openldap/commitdiff
ITS#3463 additional fix
authorHoward Chu <hyc@openldap.org>
Fri, 14 Jan 2005 02:08:02 +0000 (02:08 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 14 Jan 2005 02:08:02 +0000 (02:08 +0000)
servers/slapd/connection.c

index 83dd702d304599ba849c814d0e24763460fc7e7c..674b04de85a313ebc5c80177c287c3a218f6f697 100644 (file)
@@ -1655,8 +1655,6 @@ int connection_write(ber_socket_t s)
 
        c = connection_get( s );
 
-       slapd_clr_write( s, 0);
-
        if( c == NULL ) {
                Debug( LDAP_DEBUG_ANY,
                        "connection_write(%ld): no connection!\n",
@@ -1666,6 +1664,8 @@ int connection_write(ber_socket_t s)
                return -1;
        }
 
+       slapd_clr_write( s, 0);
+
        c->c_n_write++;
 
        Debug( LDAP_DEBUG_TRACE,