diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-03 18:13:16 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-03 18:13:16 +0100 |
commit | b6eaaf49b62a316f99f43a666c6925068ffa354f (patch) | |
tree | 2d8d19aa5f10068727b66f8f6fb35712b73a12bc /src/lua/lua_redis.c | |
parent | 490f4f89875e468ef7bed54a005eacb7822287df (diff) | |
download | rspamd-b6eaaf49b62a316f99f43a666c6925068ffa354f.tar.gz rspamd-b6eaaf49b62a316f99f43a666c6925068ffa354f.zip |
Upgrade rdns.
Diffstat (limited to 'src/lua/lua_redis.c')
-rw-r--r-- | src/lua/lua_redis.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c index dedb7850c..2f9020659 100644 --- a/src/lua/lua_redis.c +++ b/src/lua/lua_redis.c @@ -246,7 +246,7 @@ lua_redis_dns_callback (struct rdns_reply *reply, gpointer arg) struct rdns_reply_entry *elt; - if (reply->code != DNS_RC_NOERROR) { + if (reply->code != RDNS_RC_NOERROR) { lua_redis_push_error (rdns_strerror (reply->code), ud, FALSE); return; } @@ -306,8 +306,9 @@ lua_redis_make_request (lua_State *L) if (inet_aton (ud->server, &ud->ina) == 0) { /* Need to make dns request */ /* Resolve hostname */ - if (make_dns_request (task->resolver, task->s, task->task_pool, lua_redis_dns_callback, ud, - DNS_REQUEST_A, ud->server)) { + if (make_dns_request (task->resolver, task->s, task->task_pool, + lua_redis_dns_callback, ud, + RDNS_REQUEST_A, ud->server)) { task->dns_requests ++; lua_pushboolean (L, TRUE); } |