]> git.sur5r.net Git - openldap/commitdiff
make sure an invalid connection is always released as appropriate
authorPierangelo Masarati <ando@openldap.org>
Mon, 3 Apr 2006 21:56:30 +0000 (21:56 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 3 Apr 2006 21:56:30 +0000 (21:56 +0000)
servers/slapd/back-meta/conn.c

index dce20023bbaa2f9f7045160aa9094c230cc83f00..86db9cfe29da1c06688a5e4d1bcaf03174626143 100644 (file)
@@ -520,8 +520,9 @@ meta_back_retry(
                        rc = meta_back_single_dobind( op, rs, mcp, candidate,
                                sendok, mt->mt_nretries, 0 );
                }
+       }
 
-       } else {
+       if ( rc != LDAP_SUCCESS ) {
                meta_back_release_conn_lock( op, mc, 1, 0 );
                *mcp = NULL;