]> git.sur5r.net Git - openldap/commitdiff
Fix previous commit - use EWOULDBLOCK instead of EAGAIN
authorHoward Chu <hyc@openldap.org>
Thu, 29 Aug 2002 13:38:36 +0000 (13:38 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 29 Aug 2002 13:38:36 +0000 (13:38 +0000)
libraries/libldap/cyrus.c
libraries/libldap/request.c

index 34cc0d8e422df5eb1ebde2c29b015a6f93c568fd..f2491f3c3841cdb2f97992c9979d3169bd2c9faf 100644 (file)
@@ -335,7 +335,7 @@ sb_sasl_write( Sockbuf_IO_Desc *sbiod, void *buf, ber_len_t len)
                        return ret;
                /* Still have something left?? */
                if ( p->buf_out.buf_ptr != p->buf_out.buf_end ) {
-                       errno = EAGAIN;
+                       errno = EWOULDBLOCK;
                        return 0;
                }
        }
index c45a7769f5935027a35b1e18b39cfc40b6dc9392..0ffd592b2187ecf700a2459bb079a813db059793 100644 (file)
@@ -146,7 +146,7 @@ ldap_int_flush_request(
        LDAPConn *lc = lr->lr_conn;
 
        if ( ber_flush( lc->lconn_sb, lr->lr_ber, 0 ) != 0 ) {
-               if ( errno == EWOULDBLOCK || errno == EAGAIN ) {
+               if ( errno == EWOULDBLOCK ) {
                        /* need to continue write later */
                        lr->lr_status = LDAP_REQST_WRITING;
                        ldap_mark_select_write( ld, lc->lconn_sb );