diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2015-10-23 02:57:30 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2015-10-23 02:57:30 -0500 |
commit | 3991980d35f1711256e593cba6ff88064056f2a6 (patch) | |
tree | 6340ca03e79374731c7847f7cf4254d1d5e87ff5 /src | |
parent | 2e9737f1184064e01b7ee0a9504d601d74ba4bf2 (diff) | |
download | libtdeldap-3991980d35f1711256e593cba6ff88064056f2a6.tar.gz libtdeldap-3991980d35f1711256e593cba6ff88064056f2a6.zip |
Revert "Fix memory leak on certificate request attempt"
Unfortunately this did not fix the leak as I originally thought.
This reverts commit 2e9737f1184064e01b7ee0a9504d601d74ba4bf2.
Diffstat (limited to 'src')
-rw-r--r-- | src/libtdeldap.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libtdeldap.cpp b/src/libtdeldap.cpp index eddd74c..8a14cc3 100644 --- a/src/libtdeldap.cpp +++ b/src/libtdeldap.cpp @@ -371,14 +371,12 @@ int LDAPManager::bind(TQString* errstr) { } int retcode = ldap_initialize(&ldapconn, uri.ascii()); if (retcode < 0) { - ldap_unbind_ext_s(ldapconn, NULL, NULL); if (errstr) *errstr = i18n("<qt>Unable to connect to LDAP server %1 on port %2<p>Reason: [%3] %4</qt>").arg(m_host).arg(m_port).arg(retcode).arg(ldap_err2string(retcode)); else KMessageBox::error(0, i18n("<qt>Unable to connect to LDAP server %1 on port %2<p>Reason: [%3] %4</qt>").arg(m_host).arg(m_port).arg(retcode).arg(ldap_err2string(retcode)), i18n("Unable to connect to server!")); return -1; } retcode = ldap_set_option(ldapconn, LDAP_OPT_PROTOCOL_VERSION, &requested_ldap_version); if (retcode != LDAP_OPT_SUCCESS) { - ldap_unbind_ext_s(ldapconn, NULL, NULL); if (errstr) *errstr = i18n("<qt>Unable to connect to LDAP server %1 on port %2<p>Reason: [%3] %4</qt>").arg(m_host).arg(m_port).arg(retcode).arg(ldap_err2string(retcode)); else KMessageBox::error(0, i18n("<qt>Unable to connect to LDAP server %1 on port %2<p>Reason: [%3] %4</qt>").arg(m_host).arg(m_port).arg(retcode).arg(ldap_err2string(retcode)), i18n("Unable to connect to server!")); return -1; |