From c938ec2c5c0a796c4a69b8946884a49e266bdea2 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Mon, 3 Jul 2006 07:23:29 +0000 Subject: Relevant BUGIDs: Purpose of commit: bugfix Commit summary: --------------- * configure.in: Fixed have_key_syscalls test. * modules/pam_access/pam_access.c (from_match): Fixed IPv4 network match, removed AI_ADDRCONFIG flag. --- modules/pam_access/pam_access.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules') diff --git a/modules/pam_access/pam_access.c b/modules/pam_access/pam_access.c index 2218ca9a..ffb3c353 100644 --- a/modules/pam_access/pam_access.c +++ b/modules/pam_access/pam_access.c @@ -535,7 +535,7 @@ from_match (pam_handle_t *pamh UNUSED, char *tok, struct login_info *item) struct addrinfo hint; memset (&hint, '\0', sizeof (hint)); - hint.ai_flags = AI_ADDRCONFIG | AI_CANONNAME; + hint.ai_flags = AI_CANONNAME; hint.ai_family = AF_INET; if (getaddrinfo (string, NULL, &hint, &res) != 0) @@ -561,10 +561,10 @@ from_match (pam_handle_t *pamh UNUSED, char *tok, struct login_info *item) freeaddrinfo (res); return YES; } - runp = runp->ai_next; } - freeaddrinfo (res); + runp = runp->ai_next; } + freeaddrinfo (res); } } else if (isipaddr(string, NULL, NULL) == YES) { /* Assume network/netmask with a IP of a host. */ @@ -576,7 +576,7 @@ from_match (pam_handle_t *pamh UNUSED, char *tok, struct login_info *item) struct addrinfo hint; memset (&hint, '\0', sizeof (hint)); - hint.ai_flags = AI_ADDRCONFIG | AI_CANONNAME; + hint.ai_flags = AI_CANONNAME; hint.ai_family = AF_UNSPEC; if (getaddrinfo (string, NULL, &hint, &res) != 0) -- cgit v1.2.3