commit 2e73868: [Fix] Fix DNS reply handling for HTTP maps

Vsevolod Stakhov vsevolod at rspamd.com
Sat Oct 1 14:21:03 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-10-01 15:17:27 +0100
URL: https://github.com/rspamd/rspamd/commit/2e73868251c25c005b59bf1e8c0701b0ee21d37d

[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);


More information about the Commits mailing list