]> git.sur5r.net Git - openldap/commitdiff
For ITS#1983, in ber_pvt_sb_do_write, partial writes are not failures
authorHoward Chu <hyc@openldap.org>
Thu, 29 Aug 2002 09:46:19 +0000 (09:46 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 29 Aug 2002 09:46:19 +0000 (09:46 +0000)
libraries/liblber/sockbuf.c

index ae5c07c8c1e4c28e1fba4bf370de5b3a203b185f..7fa6e85321340b19feb8a4601328e050dc1c52b7 100644 (file)
@@ -313,11 +313,6 @@ ber_pvt_sb_do_write( Sockbuf_IO_Desc *sbiod, Sockbuf_Buf *buf_out )
                buf_out->buf_end = buf_out->buf_ptr = 0;
        }
 
-       if ( (ber_len_t)ret < to_go ) {
-               /* not enough data, so pretend no data was sent. */
-               return -1;
-       }
-
        return ret;
 }