diff --git a/libraries/liblber/sockbuf.c b/libraries/liblber/sockbuf.c index ae5c07c8c1..7fa6e85321 100644 --- a/libraries/liblber/sockbuf.c +++ b/libraries/liblber/sockbuf.c @@ -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; }