summaryrefslogtreecommitdiffstats
path: root/src/libserver/maps/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libserver/maps/map.c')
-rw-r--r--src/libserver/maps/map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/maps/map.c b/src/libserver/maps/map.c
index f9933cee6..bb1f1f3fc 100644
--- a/src/libserver/maps/map.c
+++ b/src/libserver/maps/map.c
@@ -1217,7 +1217,7 @@ rspamd_map_dns_callback (struct rdns_reply *reply, void *arg)
if (reply->code == RDNS_RC_NOERROR) {
DL_FOREACH (reply->entries, cur_rep) {
rspamd_inet_addr_t *addr;
- addr = rspamd_inet_address_from_rnds (reply->entries);
+ addr = rspamd_inet_address_from_rnds (cur_rep);
if (addr != NULL) {
rspamd_inet_address_set_port (addr, cbd->data->port);