[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-ldap-dev
Subject:    Re: Seg fault with ldap.get_option(ldap.OPT_SERVER_CONTROLS)
From:       Michael_Ströder <michael () stroeder ! com>
Date:       2005-03-01 20:18:09
Message-ID: 4224CE01.1010507 () stroeder ! com
[Download RAW message or body]

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 setup.py 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.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic