lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1522 - in nss-pam-ldapd: . nslcd

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

nss-pam-ldapd commit: r1522 - in nss-pam-ldapd: . nslcd



Author: arthur
Date: Sat Aug 27 17:08:40 2011
New Revision: 1522
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1522

Log:
pass a statically allocated callback structure to OpenLDAP because it doesn't 
make it's own copy (thanks Jakub Hrozek)

Modified:
   nss-pam-ldapd/AUTHORS
   nss-pam-ldapd/nslcd/myldap.c

Modified: nss-pam-ldapd/AUTHORS
==============================================================================
--- nss-pam-ldapd/AUTHORS       Sat Aug 27 16:48:18 2011        (r1521)
+++ nss-pam-ldapd/AUTHORS       Sat Aug 27 17:08:40 2011        (r1522)
@@ -110,3 +110,4 @@
 Joe Hansen <joedalton2@yahoo.dk>
 Denis Doria <denisdoria@gmail.com>
 James M. Leddy <james.leddy@redhat.com>
+Jakub Hrozek <jhrozek@redhat.com>

Modified: nss-pam-ldapd/nslcd/myldap.c
==============================================================================
--- nss-pam-ldapd/nslcd/myldap.c        Sat Aug 27 16:48:18 2011        (r1521)
+++ nss-pam-ldapd/nslcd/myldap.c        Sat Aug 27 17:08:40 2011        (r1522)
@@ -538,7 +538,8 @@
   int rc;
   struct timeval tv;
 #ifdef LDAP_OPT_CONNECT_CB
-  struct ldap_conncb cb;
+  /* make this static because OpenLDAP doesn't make it's own copy */
+  static struct ldap_conncb cb;
 #endif /* LDAP_OPT_CONNECT_CB */
 #ifdef LDAP_OPT_X_TLS
   int i;
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits