[PATCH] Fix pam_access addrinfo loops

Tomas Mraz tmraz at redhat.com
Mon Jul 3 08:01:47 UTC 2006


On Sun, 2006-07-02 at 00:26 +0400, Dan Yefimov wrote:
> 				Hello!
> 	Linux-PAM 0.99.5.0 has problems with pam_access module. In function 
> from_match() loop at lines from 547 up to 567 follows addrinfo chain 
> incorrectly. It only follows the chain if current addrinfo structure has 
> ai_family field equal to AF_INET and releases the entire chain at the end of
> the first iteration. Additionally, getaddrinfo() is called with AI_ADDRCONF 
> flag, which is both excessive in that context and defined not in every system. 
> Attached patch fixes both issues. Please apply.

Applied, thank you for finding the bug and providing the patch, Dan.
-- 
Tomas Mraz <tmraz at redhat.com>




More information about the Pam-list mailing list