cURL / Mailing Lists / curl-library / Single Mail


Re: PATCH: prevent a double free() with a malformed LDAP URL

From: Nick Zitzmann <>
Date: Sat, 7 Sep 2013 10:32:20 -0500

On Sep 6, 2013, at 7:18 PM, Guenter <> wrote:

> seems NetWare CLDAP SDK doesnt like it:
> though hadnt time to look into it - just only saw the failing autobuild ...

Yeah, it also broke the build for me (Mountain Lion, LLVM 4.2):

ldap.c:368:46: error: no member named 'lud_attrs_dup' in 'struct ldap_url_desc';
      did you mean 'lud_attrs'?
                     ludp->lud_filter, ludp->lud_attrs_dup, 0, &result);
/usr/include/ldap.h:786:9: note: 'lud_attrs' declared here
        char **lud_attrs;

I'm pretty sure lines 90-91 of lib/ldap.c is the culprit:

#undef LDAPURLDesc

#undef doesn't work on typedef'd data structures, and LDAPURLDesc is declared as a typedef struct on Mountain Lion's built-in libldap.

Nick Zitzmann

List admin:
Received on 2013-09-07