lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r2067 - nss-pam-ldapd-0.8/nss

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r2067 - nss-pam-ldapd-0.8/nss



Author: arthur
Date: Sun Mar  2 22:40:24 2014
New Revision: 2067
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=2067&view=revision

Log:
fix crash when retrieving large networks entries (8532f40 from 0.9, thanks 
Lukas Slebodnik)

Modified:
   nss-pam-ldapd-0.8/nss/hosts.c
   nss-pam-ldapd-0.8/nss/networks.c

Modified: nss-pam-ldapd-0.8/nss/hosts.c
==============================================================================
--- nss-pam-ldapd-0.8/nss/hosts.c       Sun Jan 26 19:40:17 2014        (r2066)
+++ nss-pam-ldapd-0.8/nss/hosts.c       Sun Mar  2 22:40:24 2014        (r2067)
@@ -51,8 +51,6 @@
 
 #undef ERROR_OUT_BUFERROR
 #define ERROR_OUT_BUFERROR(fp) \
-  (void)tio_close(fp); \
-  fp=NULL; \
   *errnop=ERANGE; \
   *h_errnop=TRY_AGAIN; \
   return NSS_STATUS_TRYAGAIN;

Modified: nss-pam-ldapd-0.8/nss/networks.c
==============================================================================
--- nss-pam-ldapd-0.8/nss/networks.c    Sun Jan 26 19:40:17 2014        (r2066)
+++ nss-pam-ldapd-0.8/nss/networks.c    Sun Mar  2 22:40:24 2014        (r2067)
@@ -51,8 +51,6 @@
 
 #undef ERROR_OUT_BUFERROR
 #define ERROR_OUT_BUFERROR(fp) \
-  (void)tio_close(fp); \
-  fp=NULL; \
   *errnop=ERANGE; \
   *h_errnop=TRY_AGAIN; \
   return NSS_STATUS_TRYAGAIN;
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/