From 2e73868251c25c005b59bf1e8c0701b0ee21d37d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 1 Oct 2022 15:17:27 +0100 Subject: [PATCH] [Fix] Fix DNS reply handling for HTTP maps --- src/libserver/maps/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5