curl-library
Re: PATCH: prevent a double free() with a malformed LDAP URL
Date: Sun, 08 Sep 2013 13:10:18 +0200
On 07.09.2013 17:32, Nick Zitzmann wrote:
> I'm pretty sure lines 90-91 of lib/ldap.c is the culprit:
>
> ===
> #undef LDAPURLDesc
> #define LDAPURLDesc CURL_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.
yep, same with NetWare - from ldap.h:
/*
* types for ldap URL handling
*/
typedef struct ldap_url_desc {
struct ldap_url_desc *lud_next;
char *lud_scheme;
char *lud_host;
int lud_port;
char *lud_dn;
char **lud_attrs;
int lud_scope;
char *lud_filter;
char **lud_exts;
int lud_crit_exts;
} LDAPURLDesc;
Gün.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-09-08