aboutsummaryrefslogtreecommitdiffstats
path: root/src/aio_event.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2012-03-15 22:15:04 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2012-03-15 22:15:04 +0400
commit02e2d2123b2b09a8e4cf9ef6942973daa4b25c7d (patch)
tree666eece65e3c4892f490f237e8535435b38f36ef /src/aio_event.c
parentc2418c4890493f350198d1d990427e601fa2bf6e (diff)
downloadrspamd-02e2d2123b2b09a8e4cf9ef6942973daa4b25c7d.tar.gz
rspamd-02e2d2123b2b09a8e4cf9ef6942973daa4b25c7d.zip
Fix stupid error in aio_write.
Diffstat (limited to 'src/aio_event.c')
-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;