nss-pam-ldapd branch master updated. 0.8.12-124-gf21efd6
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd branch master updated. 0.8.12-124-gf21efd6
- From: Commits of the nss-pam-ldapd project <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd branch master updated. 0.8.12-124-gf21efd6
- Date: Tue, 19 Mar 2013 20:33:12 +0100 (CET)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "nss-pam-ldapd".
The branch, master has been updated
via f21efd66c2c634f8f5e3b151e04f9da459ff5f4e (commit)
from 7926326ac549bc0e6e3fd0dc9e8b9014f0bacde6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://arthurdejong.org/git/nss-pam-ldapd/commit/?id=f21efd66c2c634f8f5e3b151e04f9da459ff5f4e
commit f21efd66c2c634f8f5e3b151e04f9da459ff5f4e
Author: Jakub Hrozek <jhrozek@redhat.com>
Date: Tue Mar 19 11:38:21 2013 +0100
NSS: Return TRYAGAIN on zero-length buffer
One of our customers was running into a situation where glibc provided a
zero buffer, which is a condition that is retriable and the nss module
should return NSS_STATUS_TRYAGAIN not NSS_STATUS_UNAVAIL.
diff --git a/nss/common.h b/nss/common.h
index fccbdf9..7c21484 100644
--- a/nss/common.h
+++ b/nss/common.h
@@ -86,10 +86,15 @@
/* check validity of passed buffer (Glibc flavour) */
#define NSS_BUFCHECK \
- if ((buffer == NULL) || (buflen == 0)) \
+ if (buffer == NULL) \
{ \
*errnop = EINVAL; \
return NSS_STATUS_UNAVAIL; \
+ } \
+ if (buflen == 0) \
+ { \
+ *errnop = ERANGE; \
+ return NSS_STATUS_TRYAGAIN; \
}
#endif /* NSS_FLAVOUR_GLIBC */
-----------------------------------------------------------------------
Summary of changes:
nss/common.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
hooks/post-receive
--
nss-pam-ldapd
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/
- nss-pam-ldapd branch master updated. 0.8.12-124-gf21efd6,
Commits of the nss-pam-ldapd project