]> source.dussan.org Git - rspamd.git/commitdiff
Fix bug with lua redis timeouts.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 6 Apr 2015 13:42:33 +0000 (14:42 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 6 Apr 2015 13:42:33 +0000 (14:42 +0100)
src/lua/lua_redis.c

index 661c83079c2338f85acfff221f8d9a9a8048d2b6..e43cc6c7cb37c26dfa321a8161a2df9573916beb 100644 (file)
@@ -196,7 +196,7 @@ lua_redis_callback (redisAsyncContext *c, gpointer r, gpointer priv)
 static void
 lua_redis_timeout (int fd, short what, gpointer u)
 {
-       struct lua_redis_userdata *ud = ud;
+       struct lua_redis_userdata *ud = u;
 
        lua_redis_push_error ("timeout while connecting the server", ud, FALSE);
 }