From: Vsevolod Stakhov Date: Thu, 15 Mar 2012 18:15:04 +0000 (+0400) Subject: Fix stupid error in aio_write. X-Git-Tag: 0.5.0~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02e2d2123b2b09a8e4cf9ef6942973daa4b25c7d;p=thirdparty%2Frspamd.git Fix stupid error in aio_write. --- diff --git a/src/aio_event.c b/src/aio_event.c index 006d423fb9..4df8a54f03 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;