r11569@Kushana: nickm | 2006-12-13 17:59:58 -0500

fix last fix


svn:r9106
This commit is contained in:
Nick Mathewson 2006-12-13 23:00:05 +00:00
parent 43e06eba8b
commit c9c8072bd3

View File

@ -661,7 +661,7 @@ flush_buf_tls_impl(tor_tls_t *tls, buf_t *buf, size_t sz, size_t *buf_flushlen)
size_t forced; size_t forced;
forced = tor_tls_get_forced_write_size(tls); forced = tor_tls_get_forced_write_size(tls);
if (forced < sz) if (forced > sz)
sz = forced; sz = forced;
r = tor_tls_write(tls, buf->cur, sz); r = tor_tls_write(tls, buf->cur, sz);
if (r < 0) { if (r < 0) {