LDAP: fix bad free() when URL parsing failed
authorGeoff Beier <geoff@redhoundsoftware.com>
Thu, 5 Sep 2013 21:51:53 +0000 (17:51 -0400)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 6 Sep 2013 11:32:49 +0000 (13:32 +0200)
commit3dc6fc42bfc61b86d5cb4632bdd3c2f47fb357af
tree51d7a8f191be3ea72174b24d895602ae8a006799
parentd2fe616e7e44a106ac976aaeaa441ad7d8a6df11
LDAP: fix bad free() when URL parsing failed

When an error occurs parsing an LDAP URL, The ludp->lud_attrs[i] entries
could be freed even though they sometimes point to data within an
allocated area.

This change introduces a lud_attrs_dup[] array for the duplicated string
pointers, and it removes the unused lud_exts array.

Bug: http://curl.haxx.se/mail/lib-2013-08/0209.html
lib/ldap.c