From: Vsevolod Stakhov Date: Mon, 2 Nov 2015 08:07:36 +0000 (+0300) Subject: Use the proper string for make_dns_request X-Git-Tag: 1.0.10~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1dfecd4a8cc15a03b6b2175bd91e1a5f0cd0c467;p=rspamd.git Use the proper string for make_dns_request --- diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c index 2c92afcac..6c1b3e2cf 100644 --- a/src/lua/lua_http.c +++ b/src/lua/lua_http.c @@ -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);