diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2012-04-26 21:42:22 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2012-04-26 21:42:22 +0200 |
commit | 9ee0a776cab9a54e3a55525be79bb7c50b215841 (patch) | |
tree | 4a62d26e97d8cd0a22a706bff012220850c4de45 /nss | |
parent | 05c17536eaef591f6c36e1a89f8332faa6635a34 (diff) |
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
Diffstat (limited to 'nss')
-rw-r--r-- | nss/common.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; \ } \ |