From 1b9c9577c2122e2dec95a6724d22c39e8b8b7a7d Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 25 May 2005 11:54:19 +0000 Subject: [PATCH] invalidate cached connections if URI changed --- servers/slapd/back-ldap/config.c | 6 ++++++ 1 file changed, 6 insertions(+) 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: -- 2.39.5