Increase tls_writer buffer by at least 4 bytes

This commit is contained in:
Martin Willi
2011-01-19 14:41:59 +01:00
parent f2e2a40550
commit 8118707845
+1 -1
View File
@@ -226,7 +226,7 @@ tls_writer_t *tls_writer_create(u_int32_t bufsize)
.get_buf = _get_buf,
.destroy = _destroy,
},
.increase = bufsize ?: 32,
.increase = bufsize ? max(bufsize, 4) : 32,
);
if (bufsize)
{