lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r2068 - nss-pam-ldapd-0.7/nss

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

nss-pam-ldapd commit: r2068 - nss-pam-ldapd-0.7/nss



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

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

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

Modified: nss-pam-ldapd-0.7/nss/hosts.c
==============================================================================
--- nss-pam-ldapd-0.7/nss/hosts.c       Sun Mar  2 22:40:24 2014        (r2067)
+++ nss-pam-ldapd-0.7/nss/hosts.c       Sun Mar  2 22:40:49 2014        (r2068)
@@ -47,8 +47,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.7/nss/networks.c
==============================================================================
--- nss-pam-ldapd-0.7/nss/networks.c    Sun Mar  2 22:40:24 2014        (r2067)
+++ nss-pam-ldapd-0.7/nss/networks.c    Sun Mar  2 22:40:49 2014        (r2068)
@@ -47,8 +47,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/