Seg fault with ldap.get_option(ldap.OPT_SERVER_CONTROLS)

Michael Ströder michael at
Tue Mar 1 21:18:09 CET 2005

Deepak Giridharagopal wrote:
> On Tue, 2005-03-01 at 20:41 +0100, Michael Ströder wrote:
>>I have problems using ldap.get_option(ldap.OPT_SERVER_CONTROLS):
>>$ python2.4 -c "import ldap;ldap.get_option(ldap.OPT_SERVER_CONTROLS)"
>>Segmentation fault
> I found it...there was one spot where I forgot to check to make sure a
> pointer wasn't NULL before I messed with it.

Thanks for the quick fix. Seems to work.

> Also, as an aside, I noticed that in the CVS head the file
> doesn't include the new ldapcontrol.c file in its list of files to be
> compiled.

Already noticed that. Please sync your CVS and test.

Ciao, Michael.

More information about the python-ldap mailing list