From: Pierangelo Masarati Date: Wed, 25 May 2005 11:54:19 +0000 (+0000) Subject: invalidate cached connections if URI changed X-Git-Tag: OPENLDAP_AC_BP~599 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1b9c9577c2122e2dec95a6724d22c39e8b8b7a7d;p=openldap invalidate cached connections if URI changed --- diff --git a/servers/slapd/back-ldap/config.c b/servers/slapd/back-ldap/config.c index 33f488690a..fc0102b1a9 100644 --- a/servers/slapd/back-ldap/config.c +++ b/servers/slapd/back-ldap/config.c @@ -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: