diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-08-06 15:39:23 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-08-06 15:39:23 +0100 |
commit | 25b0522484e06ca21957abc2fa7f234fe23e8f7d (patch) | |
tree | 805c0bb4d4e99197b68db6edc37e15732b944cdc /src/lua/lua_dns.c | |
parent | 2a5e10cd472278a35dc4a7980a8130bcb9ca6430 (diff) | |
download | rspamd-25b0522484e06ca21957abc2fa7f234fe23e8f7d.tar.gz rspamd-25b0522484e06ca21957abc2fa7f234fe23e8f7d.zip |
Avoid global rspamd_main usage.
Diffstat (limited to 'src/lua/lua_dns.c')
-rw-r--r-- | src/lua/lua_dns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_dns.c b/src/lua/lua_dns.c index a471662e2..df16c75eb 100644 --- a/src/lua/lua_dns.c +++ b/src/lua/lua_dns.c @@ -214,7 +214,7 @@ lua_dns_resolver_init (lua_State *L) cfg = pcfg ? *(pcfg) : NULL; if (base != NULL && cfg != NULL) { - resolver = dns_resolver_init (rspamd_main->logger, base, cfg); + resolver = dns_resolver_init (NULL, base, cfg); if (resolver) { presolver = lua_newuserdata (L, sizeof (gpointer)); rspamd_lua_setclass (L, "rspamd{resolver}", -1); |