From: Vsevolod Stakhov Date: Sat, 1 Oct 2022 14:17:27 +0000 (+0100) Subject: [Fix] Fix DNS reply handling for HTTP maps X-Git-Tag: 3.3~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2e73868251c25c005b59bf1e8c0701b0ee21d37d;p=thirdparty%2Frspamd.git [Fix] Fix DNS reply handling for HTTP maps --- diff --git a/src/libserver/maps/map.c b/src/libserver/maps/map.c index f9933cee65..bb1f1f3fc0 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);