Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] Submitter DNS name resolution and forgery detection

2013-08-16 by manu@...

Jim Klimov <jimklimov@...> wrote:

>         rc = getnameinfo(res->ai_addr, res->ai_addrlen,
> -                        addr, IPADDRSTRLEN, NULL, 0, NI_NAMEREQD);
> +                        abuf, IPADDRSTRLEN, NULL, 0, NI_NAMEREQD);
> -       if (rc != 0)
> +       if (rc != 0) {
>                 mg_log(LOG_INFO, "failed resolving %s: %s",
>                        addr, gai_strerror(rc));
> +       } else {
> +              strncpy(addr, abuf, IPADDRSTRLEN);
> +              addr[IPADDRSTRLEN] = '\0';
> +       }

Ok, I added that.

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu@...

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.