Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nss
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2008-02-01 20:32:16 +0100
committerArthur de Jong <arthur@arthurdejong.org>2008-02-01 20:32:16 +0100
commitee574758629ca78ccb4589763be2b10ab032fd18 (patch)
tree3451cec859e74251694fc3120c8c0c41991f1aab /nss
parent2982bef1722fdcb34abe3ca8d32b1fce1dad7cd7 (diff)
fail with a permanent error if resetting the stream failed to prevent indefinite retries
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@596 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nss')
-rw-r--r--nss/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/nss/common.h b/nss/common.h
index 4b9bf0d..5159c81 100644
--- a/nss/common.h
+++ b/nss/common.h
@@ -196,6 +196,9 @@ TFILE *nslcd_client_open(void)
{ \
tio_close(fp); \
fp=NULL; \
+ /* fail with permanent error to prevent retries */ \
+ *errnop=EINVAL; \
+ return NSS_STATUS_UNAVAIL; \
} \
} \
else if (retv!=NSS_STATUS_SUCCESS) \