From 1dfecd4a8cc15a03b6b2175bd91e1a5f0cd0c467 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 2 Nov 2015 11:07:36 +0300 Subject: [PATCH] Use the proper string for make_dns_request --- src/lua/lua_http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.39.5