[master] fix SDB bug

3970.   [contrib]       Fixed a use after free bug in the SDB LDAP driver.
                        [RT #37237]
This commit is contained in:
Evan Hunt
2014-10-02 23:24:07 -07:00
parent 12002ea49e
commit 1c182f1516
2 changed files with 3 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
3970. [contrib] Fixed a use after free bug in the SDB LDAP driver.
[RT #37237]
3969. [test] Added 'delv' system test. [RT #36901]
3968. [bug] Silence spurious log messages when using 'named -[46]'.

View File

@@ -133,7 +133,6 @@ ldapdb_getconn(struct ldapdb_data *data)
free(threaddata->index);
while (threaddata->data != NULL) {
conndata = threaddata->data;
free(conndata->index);
if (conndata->data != NULL)
ldap_unbind((LDAP *)conndata->data);
threaddata->data = conndata->next;