]> git.sur5r.net Git - openldap/commitdiff
ITS#5489 move assert
authorHoward Chu <hyc@openldap.org>
Fri, 23 May 2008 15:29:12 +0000 (15:29 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 23 May 2008 15:29:12 +0000 (15:29 +0000)
servers/slapd/daemon.c

index 3fe81157b79552017523151a9b107583eb7aa14d..45bd7d3fe801afd8a33cad32a46c09c51e1793c4 100644 (file)
@@ -928,9 +928,9 @@ slapd_clr_write( ber_socket_t s, int wake )
 {
        ldap_pvt_thread_mutex_lock( &slap_daemon.sd_mutex );
 
-       assert( SLAP_SOCK_IS_ACTIVE( s ));
-
        if ( SLAP_SOCK_IS_WRITE( s )) {
+               assert( SLAP_SOCK_IS_ACTIVE( s ));
+
                SLAP_SOCK_CLR_WRITE( s );
                slap_daemon.sd_nwriters--;
        }