Increase tls_writer buffer by at least 4 bytes
This commit is contained in:
@@ -226,7 +226,7 @@ tls_writer_t *tls_writer_create(u_int32_t bufsize)
|
|||||||
.get_buf = _get_buf,
|
.get_buf = _get_buf,
|
||||||
.destroy = _destroy,
|
.destroy = _destroy,
|
||||||
},
|
},
|
||||||
.increase = bufsize ?: 32,
|
.increase = bufsize ? max(bufsize, 4) : 32,
|
||||||
);
|
);
|
||||||
if (bufsize)
|
if (bufsize)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user