]> git.sur5r.net Git - openldap/commitdiff
release resources (ITS#4016)
authorPierangelo Masarati <ando@openldap.org>
Fri, 9 Sep 2005 02:37:38 +0000 (02:37 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 9 Sep 2005 02:37:38 +0000 (02:37 +0000)
servers/slapd/back-ldap/bind.c

index 5f6960abed0ecc9f2af8f189ba1bb368a8acc67b..e94fc9c4835a44c73cd477b9cb7c465101659173 100644 (file)
@@ -741,6 +741,9 @@ retry:;
                rc = ldap_back_op_result( lc, op, rs, msgid, sendok );
                if ( rc == LDAP_SUCCESS ) {
                        lc->lc_bound = 1;
+
+               } else {
+                       ldap_back_release_conn( op, rs, lc );
                }
        }