diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-03-15 22:15:04 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-03-15 22:15:04 +0400 |
commit | 02e2d2123b2b09a8e4cf9ef6942973daa4b25c7d (patch) | |
tree | 666eece65e3c4892f490f237e8535435b38f36ef /src/aio_event.c | |
parent | c2418c4890493f350198d1d990427e601fa2bf6e (diff) | |
download | rspamd-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.c | 3 |
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; |