]> git.sur5r.net Git - openldap/blobdiff - libraries/liblber/sockbuf.c
Add BER_BVNULL
[openldap] / 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;
 }