From 02e2d2123b2b09a8e4cf9ef6942973daa4b25c7d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 15 Mar 2012 22:15:04 +0400 Subject: [PATCH] Fix stupid error in aio_write. --- src/aio_event.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5