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. --- ChangeLog | 7 +++++++ configure.in | 2 +- modules/pam_access/pam_access.c | 8 ++++---- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4f747367..40b3c3f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-07-03 Dan Yefimov + + * configure.in: Fixed have_key_syscalls test. + + * modules/pam_access/pam_access.c (from_match): Fixed IPv4 network match, + removed AI_ADDRCONFIG flag. + 2006-06-30 Tomas Mraz * modules/pam_namespace/Makefile.am(EXTRA_DIST): Add namespace.init. diff --git a/configure.in b/configure.in index 4e4e2ec3..4c6d1604 100644 --- a/configure.in +++ b/configure.in @@ -465,7 +465,7 @@ if test $HAVE_KEY_MANAGEMENT = 1; then fi AC_SUBST([HAVE_KEY_MANAGEMENT], $HAVE_KEY_MANAGEMENT) -AM_CONDITIONAL([HAVE_KEY_MANAGEMENT], [test ! -z "$have_key_syscalls"]) +AM_CONDITIONAL([HAVE_KEY_MANAGEMENT], [test "$have_key_syscalls" = 1]) dnl Files to be created from when we run configure AC_OUTPUT(Makefile libpam/Makefile libpamc/Makefile libpamc/test/Makefile \ 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