]> source.dussan.org Git - rspamd.git/commitdiff
Use the proper string for make_dns_request
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 2 Nov 2015 08:07:36 +0000 (11:07 +0300)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 2 Nov 2015 08:07:36 +0000 (11:07 +0300)
src/lua/lua_http.c

index 2c92afcace15b8bff6468a3245c730c4c0c37069..6c1b3e2cfca0dd4a2c400da76bce9896e946853f 100644 (file)
@@ -465,7 +465,8 @@ lua_http_request (lua_State *L)
                        rspamd_strlcpy (to_resolve, msg->host->str, msg->host->len + 1);
 
                        if (!make_dns_request (resolver, session, NULL, lua_http_dns_handler, cbd,
-                                       RDNS_REQUEST_A, msg->host->str)) {
+                                       RDNS_REQUEST_A,
+                                       to_resolve)) {
                                lua_http_maybe_free (cbd);
                                lua_pushboolean (L, FALSE);
                                g_free (to_resolve);