summaryrefslogtreecommitdiff
path: root/src/libtls/tls_writer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libtls/tls_writer.c')
-rw-r--r--src/libtls/tls_writer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libtls/tls_writer.c b/src/libtls/tls_writer.c
index 235dc2cdf..e87c2efea 100644
--- a/src/libtls/tls_writer.c
+++ b/src/libtls/tls_writer.c
@@ -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)
{