]> git.sur5r.net Git - openldap/commitdiff
cleanup
authorPierangelo Masarati <ando@openldap.org>
Sat, 6 May 2006 17:22:59 +0000 (17:22 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 6 May 2006 17:22:59 +0000 (17:22 +0000)
servers/slapd/back-meta/conn.c

index 59cd94962a213af5f38187e592737e69d3a116f6..1158d2f00dbd412e070fb04197cbf1d7f3851eb6 100644 (file)
@@ -402,7 +402,8 @@ retry:;
                if ( rs->sr_err == LDAP_SERVER_DOWN
                                || ( rs->sr_err != LDAP_SUCCESS && LDAP_BACK_TLS_CRITICAL( mi ) ) )
                {
-                       ldap_unbind_ext_s( msc->msc_ld, NULL, NULL );
+                       ldap_unbind_ext( msc->msc_ld, NULL, NULL );
+                       msc->msc_ld = NULL;
                        goto error_return;
                }
        }
@@ -456,7 +457,8 @@ retry:;
                        if ( ldap_back_dn_massage( &dc, &op->o_conn->c_dn,
                                                &msc->msc_bound_ndn ) )
                        {
-                               ldap_unbind_ext_s( msc->msc_ld, NULL, NULL );
+                               ldap_unbind_ext( msc->msc_ld, NULL, NULL );
+                               msc->msc_ld = NULL;
                                goto error_return;
                        }