Increase tls_writer buffer by at least 4 bytes
This commit is contained in:
1 parent
f2e2a40550
commit
8118707845
1 file changed
+1
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user