]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit, s/errno/err/g
authorHoward Chu <hyc@openldap.org>
Tue, 27 Oct 2009 01:55:45 +0000 (01:55 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 27 Oct 2009 01:55:45 +0000 (01:55 +0000)
libraries/libldap/sasl.c

index 43c7b5c7e43a8f4e2900489e21b90a6d91bd821d..29fa3b2df41c15fbb7123e960bca9c079fa870f2 100644 (file)
@@ -728,7 +728,7 @@ sb_sasl_generic_write( Sockbuf_IO_Desc *sbiod, void *buf, ber_len_t len)
                /* error? */
                int err = sock_errno();
                /* caller can retry this */
-               if ( err == EAGAIN || errno == EWOULDBLOCK || errno == EINTR )
+               if ( err == EAGAIN || err == EWOULDBLOCK || err == EINTR )
                        p->flags |= LDAP_PVT_SASL_PARTIAL_WRITE;
                return ret;
        } else if ( p->buf_out.buf_ptr != p->buf_out.buf_end ) {