Skip to content

Commit

Permalink
LDAPObject.unbind_ext() now removed class attribute LDAPObject._l to …
Browse files Browse the repository at this point in the history
…completely invalidate C wrapper object
  • Loading branch information
stroeder committed Jan 26, 2016
1 parent 0d45e6d commit 3784f88
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ Released 2.4.26 2016-xx-xx

Changes since 2.4.25:

Lib/
* LDAPObject.unbind_ext() now removed class attribute
LDAPObject._l to completely invalidate C wrapper object

Modules/
* Fixed #69 Segmentation fault on whoami_s after unbind
(thanks to Christian Heimes and Petr Viktorin)
Expand Down Expand Up @@ -1244,4 +1248,4 @@ Released 2.0.0pre02 2002-02-01
----------------------------------------------------------------
Released 1.10alpha3 2000-09-19

$Id: CHANGES,v 1.372 2016/01/26 11:01:08 stroeder Exp $
$Id: CHANGES,v 1.373 2016/01/26 11:12:54 stroeder Exp $
6 changes: 4 additions & 2 deletions Lib/ldap/ldapobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
See http://www.python-ldap.org/ for details.
\$Id: ldapobject.py,v 1.151 2016/01/18 10:38:26 stroeder Exp $
\$Id: ldapobject.py,v 1.152 2016/01/26 11:12:54 stroeder Exp $
Compability:
- Tested with Python 2.0+ but should work with Python 1.5.x
Expand Down Expand Up @@ -623,7 +623,9 @@ def unbind_ext(self,serverctrls=None,clientctrls=None):
The unbind and unbind_s methods are identical, and are
synchronous in nature
"""
return self._ldap_call(self._l.unbind_ext,RequestControlTuples(serverctrls),RequestControlTuples(clientctrls))
res = self._ldap_call(self._l.unbind_ext,RequestControlTuples(serverctrls),RequestControlTuples(clientctrls))
del self._l
return res

def unbind_ext_s(self,serverctrls=None,clientctrls=None):
msgid = self.unbind_ext(serverctrls,clientctrls)
Expand Down

0 comments on commit 3784f88

Please sign in to comment.