]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Don't log EAGAIN returns from ber_get_next()
authorQuanah Gibson-Mount <quanah@openldap.org>
Tue, 2 Jan 2007 22:24:39 +0000 (22:24 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 2 Jan 2007 22:24:39 +0000 (22:24 +0000)
servers/slapd/connection.c

index de06ffb7c9b2d48d95730d507bcc9c2f921c9d14..aecb4252df966c6ddef603ed22b63872db4a3776 100644 (file)
@@ -1522,11 +1522,11 @@ connection_input( Connection *conn )
 
                ber_sockbuf_ctrl( conn->c_sb, LBER_SB_OPT_GET_FD, &sd );
 
+               if ( err != EWOULDBLOCK && err != EAGAIN ) {
+                       /* log, close and send error */
                Debug( LDAP_DEBUG_TRACE,
                        "ber_get_next on fd %d failed errno=%d (%s)\n",
                        sd, err, sock_errstr(err) );
-               if ( err != EWOULDBLOCK && err != EAGAIN ) {
-                       /* log, close and send error */
                        ber_free( conn->c_currentber, 1 );
                        conn->c_currentber = NULL;