Re: [systemd-devel] [PATCH 2/2] Fix a segfault in nscd when using nss-myhostname

2013-02-06 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Feb 04, 2013 at 03:56:26PM +0100, Eelco Dolstra wrote: > Nscd expects that an NSS module's gethostbyname4_r function returns > its first result in the pre-allocated gaih_addrtuple denoted by **pat. > (See nscd/aicache.c in the Glibc sources.) However, nss-myhostname > doesn't fill in **pat

[systemd-devel] [PATCH 2/2] Fix a segfault in nscd when using nss-myhostname

2013-02-04 Thread Eelco Dolstra
Nscd expects that an NSS module's gethostbyname4_r function returns its first result in the pre-allocated gaih_addrtuple denoted by **pat. (See nscd/aicache.c in the Glibc sources.) However, nss-myhostname doesn't fill in **pat but allocates the first result in ‘buffer’, then sets *pat. So nscd c