Browse Source

[Minor] Ignore irrelevant DNS replies

tags/3.3
Vsevolod Stakhov 1 year ago
parent
commit
a28a06159b
No account linked to committer's email address
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/lua/lua_dns_resolver.c

+ 5
- 0
src/lua/lua_dns_resolver.c View File

@@ -237,6 +237,11 @@ lua_push_dns_reply (lua_State *L, const struct rdns_reply *reply)

LL_FOREACH (reply->entries, elt)
{
if (!rdns_request_has_type(reply->request, elt->type)) {
/* Unrequested type has been returned, ignore it */
continue;
}

switch (elt->type) {
case RDNS_REQUEST_A:
addr = rspamd_inet_address_new (AF_INET, &elt->content.a.addr);

Loading…
Cancel
Save