aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/aio_event.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/aio_event.c b/src/aio_event.c
index 006d423fb..4df8a54f0 100644
--- a/src/aio_event.c
+++ b/src/aio_event.c
@@ -392,6 +392,9 @@ rspamd_aio_write (gint fd, gpointer buf, gsize len, off_t offset, struct aio_con
memcpy (ctx->buf, buf, len);
}
}
+ else {
+ memcpy (ctx->buf, buf, len);
+ }
cbdata = g_slice_alloc (sizeof (struct io_cbdata));
cbdata->cb = cb;
cbdata->buf = buf;