[syslog-ng] [PATCH] resolve_sockaddr: Fix domain stripping on initial lookup.

Balazs Scheidler bazsi at balabit.hu
Sat Nov 12 13:54:44 CET 2011


Hi,

Thanks Gergely, applied to 3.3.

On Wed, 2011-11-02 at 11:58 +0100, Gergely Nagy wrote:
> When looking up a hostname, we were only setting the 'positive' bool
> during lookup, so it was only set when the host already existed in the
> cache. When it didn't, and we just put it there right after the failed
> lookup, the bool remained false.
> 
> This resulted in the domain part not being stripped even when
> use_fqdn(no) was set.
> 
> The fix implemented in this patch is dead simple: if we managed to
> resolve a host, we set the bool to TRUE.

-- 
Bazsi




More information about the syslog-ng mailing list