]> git.sur5r.net Git - openldap/commitdiff
invalidate cached connections if URI changed
authorPierangelo Masarati <ando@openldap.org>
Wed, 25 May 2005 11:54:19 +0000 (11:54 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 25 May 2005 11:54:19 +0000 (11:54 +0000)
servers/slapd/back-ldap/config.c

index 33f488690accefb2e7a84b80d8ec5f76e65b94e3..fc0102b1a924fee34094765d65edd35259df362a 100644 (file)
@@ -524,6 +524,12 @@ ldap_back_cf_gen( ConfigArgs *c )
                                ldap_free_urllist( li->lud );
                                li->lud = NULL;
                        }
+                       
+                       /* better cleanup the cached connections... */
+                       /* NOTE: don't worry about locking: if we got here,
+                        * other threads are suspended. */
+                       avl_free( li->conntree, ldap_back_conn_free );
+                       
                        break;
 
                case LDAP_BACK_CFG_TLS: