]> source.dussan.org Git - rspamd.git/commitdiff
* Fix rspamd functions registration
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 18 Jun 2009 16:12:18 +0000 (20:12 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 18 Jun 2009 16:12:18 +0000 (20:12 +0400)
src/expressions.c

index eecf6898604abcbd7a7955381aca57da53d557a5..3f7a5d984627aea0688abe9dab334e53db79a749 100644 (file)
@@ -809,7 +809,7 @@ register_expression_function (const char *name, rspamd_internal_func_t func)
        functions_number ++;
        
        new = g_new (struct _fl, functions_number);
-       memcpy (new, rspamd_functions_list, (functions_number - 1) * sizeof (struct _fl));
+       memcpy (new, list_ptr, (functions_number - 1) * sizeof (struct _fl));
        if (list_allocated) {
                g_free (list_ptr);
        }