Skip to content

Commit

Permalink
Fixed #69 Segmentation fault on whoami_s after unbind
Browse files Browse the repository at this point in the history
  • Loading branch information
stroeder committed Jan 26, 2016
1 parent 56d80b6 commit 0d45e6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Released 2.4.26 2016-xx-xx
Changes since 2.4.25:

Modules/
*
(thanks to )
* Fixed #69 Segmentation fault on whoami_s after unbind
(thanks to Christian Heimes and Petr Viktorin)

----------------------------------------------------------------
Released 2.4.25 2016-01-18
Expand Down Expand Up @@ -1244,4 +1244,4 @@ Released 2.0.0pre02 2002-02-01
----------------------------------------------------------------
Released 1.10alpha3 2000-09-19

$Id: CHANGES,v 1.371 2016/01/26 10:43:24 stroeder Exp $
$Id: CHANGES,v 1.372 2016/01/26 11:01:08 stroeder Exp $
3 changes: 2 additions & 1 deletion Modules/LDAPObject.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* See http://www.python-ldap.org/ for details.
* $Id: LDAPObject.c,v 1.93 2016/01/18 12:33:07 stroeder Exp $ */
* $Id: LDAPObject.c,v 1.94 2016/01/26 11:01:08 stroeder Exp $ */

#include "common.h"
#include "patchlevel.h"
Expand Down Expand Up @@ -1180,6 +1180,7 @@ l_ldap_whoami_s( LDAPObject* self, PyObject* args )
int ldaperror;

if (!PyArg_ParseTuple( args, "|OO", &serverctrls, &clientctrls)) return NULL;
if (not_valid(self)) return NULL;

if (!PyNone_Check(serverctrls)) {
if (!LDAPControls_from_object(serverctrls, &server_ldcs))
Expand Down

0 comments on commit 0d45e6d

Please sign in to comment.