aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-02 11:07:36 +0300
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-02 11:07:36 +0300
commit1dfecd4a8cc15a03b6b2175bd91e1a5f0cd0c467 (patch)
tree7aa90a68c95318406b5969147c23f8b38951e1a6
parenta3dab0d96c99364fce093173964c8370ac209b2e (diff)
downloadrspamd-1dfecd4a8cc15a03b6b2175bd91e1a5f0cd0c467.tar.gz
rspamd-1dfecd4a8cc15a03b6b2175bd91e1a5f0cd0c467.zip
Use the proper string for make_dns_request
-rw-r--r--src/lua/lua_http.c3
1 files changed, 2 insertions, 1 deletions
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);