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-15 by Jim Klimov

On 2013-08-15 16:14, Emmanuel Dreyfus wrote:
> Jim Klimov <jimklimov@...> wrote:
>
>> Addon to previous review: I do not quite see how this routine does
>> NOT change the original string in addr in case of any lookup errors?
>> Did I miss something (i.e. maybe getnameinfo() does not modify it
>> upon failure - always on all platforms)?
>
> Good question. Anyone has an experience of that?
>



Well, the one experience I had with my code led to separate char[]
arrays and inspection of the return code - and if was a success,
I copied the string returned by the lookup into the priv_hostname.

//Jim

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.