diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-02 11:07:36 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-02 11:07:36 +0300 |
commit | 1dfecd4a8cc15a03b6b2175bd91e1a5f0cd0c467 (patch) | |
tree | 7aa90a68c95318406b5969147c23f8b38951e1a6 | |
parent | a3dab0d96c99364fce093173964c8370ac209b2e (diff) | |
download | rspamd-1dfecd4a8cc15a03b6b2175bd91e1a5f0cd0c467.tar.gz rspamd-1dfecd4a8cc15a03b6b2175bd91e1a5f0cd0c467.zip |
Use the proper string for make_dns_request
-rw-r--r-- | src/lua/lua_http.c | 3 |
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); |