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
Message
Re: [milter-greylist] Submitter DNS name resolution and forgery detection
2013-08-15 by Jim Klimov