diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2006-11-01 12:17:49 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2006-11-01 12:17:49 +0000 |
commit | 385f8898b9af6d3db96355496e851a1256a6fd84 (patch) | |
tree | b5b013f38a2a6632a783efc67deb8cd38e6811b6 /server | |
parent | 629c39e774db8ba8ae01ba1591c7382e020378f3 (diff) |
do not close the server-side stream as the main dispatcher will close it
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@45 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'server')
-rw-r--r-- | server/common.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/server/common.h b/server/common.h index d0218f9..65d5f49 100644 --- a/server/common.h +++ b/server/common.h @@ -33,17 +33,20 @@ int nss2nslcd(enum nss_status code); /* macros for basic read and write operations, the following - ERROR_OUT* marcos define the action taken on errors */ + ERROR_OUT* marcos define the action taken on errors + the stream is not closed because the caller closes the + stream */ #define ERROR_OUT_WRITEERROR(fp) \ - fclose(fp); \ + log_log(LOG_WARNING,"error writing to client"); \ return -1; - + #define ERROR_OUT_READERROR(fp) \ - fclose(fp); \ + log_log(LOG_WARNING,"error reading from client"); \ return -1; #define ERROR_OUT_ALLOCERROR(fp) \ - ERROR_OUT_READERROR(fp) + log_log(LOG_ERR,"error allocating memory"); \ + return -1; #endif /* not _SERVER_COMMON_H */ |