From ee574758629ca78ccb4589763be2b10ab032fd18 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Fri, 1 Feb 2008 19:32:16 +0000 Subject: 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 --- nss/common.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nss') 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) \ -- cgit v1.2.3