]> source.dussan.org Git - rspamd.git/commitdiff
Fix stupid error in aio_write.
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 15 Mar 2012 18:15:04 +0000 (22:15 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 15 Mar 2012 18:15:04 +0000 (22:15 +0400)
src/aio_event.c

index 006d423fb981ba100df4d52b9fbbd6b0c1c5ccae..4df8a54f03f869671abac6f4d0f9f927d89217c1 100644 (file)
@@ -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;