From 9ee0a776cab9a54e3a55525be79bb7c50b215841 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Thu, 26 Apr 2012 19:42:22 +0000 Subject: split the functionality to read everything from the stream into a separate function and don't assume we use non-blocking IO (fix r1637) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1659 ef36b2f9-881f-0410-afb5-c4e39611909c --- nss/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nss') diff --git a/nss/common.h b/nss/common.h index 781e159..7873b93 100644 --- a/nss/common.h +++ b/nss/common.h @@ -148,7 +148,7 @@ nss_status_t nss_ldap_destructor(nss_backend_t *be,void UNUSED(*args)); /* close socket and we're done */ \ if ((retv==NSS_STATUS_SUCCESS)||(retv==NSS_STATUS_TRYAGAIN)) \ { \ - (void)tio_skip(fp,0); /* read any buffered data */ \ + (void)tio_skipall(fp); \ (void)tio_close(fp); \ } \ return retv; @@ -224,7 +224,7 @@ nss_status_t nss_ldap_destructor(nss_backend_t *be,void UNUSED(*args)); NSS_AVAILCHECK; \ if (fp!=NULL) \ { \ - (void)tio_skip(fp,0); /* read any buffered data */ \ + (void)tio_skipall(fp); \ (void)tio_close(fp); \ fp=NULL; \ } \ -- cgit v1.2.3